Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1449 Rev 1451
Línea 205... Línea 205...
205
            $dataPost['status'] = isset($dataPost['status']) ? $dataPost['status'] : RecruitmentSelectionVacancy::STATUS_INACTIVE;
205
            $dataPost['status'] = isset($dataPost['status']) ? $dataPost['status'] : RecruitmentSelectionVacancy::STATUS_INACTIVE;
Línea 206... Línea 206...
206
 
206
 
Línea 207... Línea 207...
207
            $form->setData($dataPost);
207
            $form->setData($dataPost);
208
 
-
 
209
            if ($form->isValid()) {
-
 
210
 
208
 
Línea 211... Línea 209...
211
 
209
            if ($form->isValid()) {
Línea 212... Línea 210...
212
                $dataPost = (array) $form->getData();
210
                $dataPost = (array) $form->getData();
213
 
211
 
-
 
212
                $hydrator = new ObjectPropertyHydrator();
-
 
213
 
-
 
214
                $location = new Location();
-
 
215
                $hydrator->hydrate($dataPost, $location);
-
 
216
 
-
 
217
                return new JsonModel([
-
 
218
                    'success' => false,
-
 
219
                    'data' => [
-
 
220
                        $request->getPost()->toArray(),
Línea 214... Línea 221...
214
                $hydrator = new ObjectPropertyHydrator();
221
                        $dataPost,
215
 
222
                        (array)$location,
Línea 216... Línea 223...
216
                $location = new Location();
223
                    ],