Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1428 Rev 1429
Línea 245... Línea 245...
245
                $recruitmentForm->industry_id = $industry->id;
245
                $recruitmentForm->industry_id = $industry->id;
Línea 246... Línea 246...
246
 
246
 
247
                $recruitmentForm->description = $dataPost['description'];
247
                $recruitmentForm->description = $dataPost['description'];
Línea 248... Línea -...
248
                $recruitmentForm->last_date = $dataPost['last_date'];
-
 
249
 
-
 
250
                // return new JsonModel([
-
 
251
                //     'success' => false,
-
 
252
                //     'data' => [
-
 
253
                //         $request->getPost()->toArray(),
-
 
254
                //         $dataPost,
-
 
255
                //         (array)$currentCompany,
-
 
256
                //         (array)$recruitmentForm,
-
 
257
                //         (array)$result,
-
 
258
                //     ],
-
 
259
                // ]);
248
                $recruitmentForm->last_date = $dataPost['last_date'];
260
 
249
 
Línea 261... Línea 250...
261
                $recruitmentSelectionVacancyMapper = RecruitmentSelectionVacancyMapper::getInstance($this->adapter);
250
                $recruitmentSelectionVacancyMapper = RecruitmentSelectionVacancyMapper::getInstance($this->adapter);
262
                $result = $recruitmentSelectionVacancyMapper->insert($recruitmentForm);
251
                $result = $recruitmentSelectionVacancyMapper->insert($recruitmentForm);
Línea 268... Línea 257...
268
                        'success' => true,
257
                        'success' => true,
269
                        'data' => 'LABEL_RECORD_ADDED'
258
                        'data' => 'LABEL_RECORD_ADDED'
270
                    ];
259
                    ];
Línea 271... Línea 260...
271
 
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,
-
 
270
                            $recruitmentSelectionVacancyMapper->getError(),
-
 
271
                        ],
-
 
272
                    ]);
272
                } else {
273
 
273
                    $data = [
274
                    $data = [
274
                        'success' => false,
275
                        'success' => false,
275
                        'data' => $recruitmentSelectionVacancyMapper->getError()
276
                        'data' => $recruitmentSelectionVacancyMapper->getError()
276
                    ];
277
                    ];