Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 209 | Rev 211 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 209 Rev 210
Línea 199... Línea 199...
199
                $result = $companySelfEvaluationMapper->insert($companySelfEvaluation);
199
                $result = $companySelfEvaluationMapper->insert($companySelfEvaluation);
Línea 200... Línea 200...
200
                
200
                
201
                if($result) {
201
                if($result) {
Línea -... Línea 202...
-
 
202
                    $this->logger->info('Se agrego el tamaño de empresa ' . $companySelfEvaluation->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
-
 
203
                    
-
 
204
                    $record = $companySelfEvaluationMapper->fetchOne($companySelfEvaluation->id);
202
                    $this->logger->info('Se agrego el tamaño de empresa ' . $companySelfEvaluation->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
205
                    if($record) {
203
                    
206
 
204
                    $data = [
207
                    $data = [
-
 
208
                        'success'   => true,
205
                        'success'   => true,
209
                        'id' => $record->id,
206
                        'id' => $companySelfEvaluation,
210
                        'action_edit' => $this->url()->fromRoute('self-evaluation/forms/edit', ['id' => $record->uuid ]),
-
 
211
                        'data'   => 'LABEL_RECORD_ADDED'
-
 
212
                    ];
-
 
213
 
207
                        'data'   => 'LABEL_RECORD_ADDED'
214
                }
208
                    ];
215
 
209
                } else {
216
                } else {
210
                    $data = [
217
                    $data = [
211
                        'success'   => false,
218
                        'success'   => false,