Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1429 Rev 1430
Línea 246... Línea 246...
246
 
246
 
247
                $recruitmentForm->description = $dataPost['description'];
247
                $recruitmentForm->description = $dataPost['description'];
Línea 248... Línea 248...
248
                $recruitmentForm->last_date = $dataPost['last_date'];
248
                $recruitmentForm->last_date = $dataPost['last_date'];
-
 
249
 
-
 
250
                $recruitmentSelectionVacancyMapper = RecruitmentSelectionVacancyMapper::getInstance($this->adapter);
-
 
251
 
-
 
252
                return new JsonModel([
-
 
253
                    'success' => false,
-
 
254
                    'data' => ['test'],
249
 
255
                ]);
Línea -... Línea 256...
-
 
256
 
-
 
257
                $result = $recruitmentSelectionVacancyMapper->insert($recruitmentForm);
-
 
258
 
-
 
259
                return new JsonModel([
-
 
260
                    'success' => false,
-
 
261
                    'data' => [
-
 
262
                        $request->getPost()->toArray(),
-
 
263
                        $dataPost,
-
 
264
                        (array)$currentCompany,
-
 
265
                        (array)$recruitmentForm,
-
 
266
                        (array)$result,
-
 
267
                        $result,
250
                $recruitmentSelectionVacancyMapper = RecruitmentSelectionVacancyMapper::getInstance($this->adapter);
268
                    ],
251
                $result = $recruitmentSelectionVacancyMapper->insert($recruitmentForm);
269
                ]);
Línea 252... Línea 270...
252
 
270
 
253
                if ($result) {
271
                if ($result) {
254
                    $this->logger->info('Se agrego el proceso de reclutamiento' . $recruitmentForm->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
272
                    $this->logger->info('Se agrego el proceso de reclutamiento' . $recruitmentForm->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
255
 
273
 
Línea 256... Línea 274...
256
                    $data = [
274
                    $data = [
257
                        'success' => true,
-
 
258
                        'data' => 'LABEL_RECORD_ADDED'
-
 
259
                    ];
-
 
260
 
-
 
261
                } else {
-
 
262
                    return new JsonModel([
-
 
263
                        'success' => false,
-
 
264
                        'data' => [
-
 
265
                            $request->getPost()->toArray(),
-
 
266
                            $dataPost,
-
 
267
                            (array)$currentCompany,
-
 
268
                            (array)$recruitmentForm,
-
 
269
                            (array)$result,
275
                        'success' => true,
270
                            $recruitmentSelectionVacancyMapper->getError(),
276
                        'data' => 'LABEL_RECORD_ADDED'
271
                        ],
277
                    ];
272
                    ]);
278
 
273
 
279
                } else {