Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 5002 Rev 5003
Línea 296... Línea 296...
296
        }
296
        }
Línea 297... Línea 297...
297
 
297
 
298
        if($request->isPost()){
298
        if($request->isPost()){
299
            $form = new SurveySegmentedForm($this->adapter, $currentCompany->id);
299
            $form = new SurveySegmentedForm($this->adapter, $currentCompany->id);
-
 
300
            $dataPost = $request->getPost()->toArray();
-
 
301
            return new JsonModel([
-
 
302
                'success' => false,
-
 
303
                'data' => $dataPost
300
            $dataPost = $request->getPost()->toArray();
304
            ]);
Línea 301... Línea 305...
301
            $form->setData($dataPost);
305
            $form->setData($dataPost);
302
 
306
 
Línea 344... Línea 348...
344
                        }
348
                        }
345
                    }
349
                    }
346
                }
350
                }
Línea 347... Línea 351...
347
 
351
 
348
                if($dataPost['job_category_id']){
352
                if($dataPost['job_category_id']){
349
                    foreach($dataPost['job_category_id'].[''] as $jobCategoryId) {
353
                    foreach($dataPost['job_category_id'] as $jobCategoryId) {
350
                        $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
354
                        $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
351
                        $JobCategorySurveyId = $jobCategoryMapper->fetchOneByUuid($jobCategoryId);
355
                        $JobCategorySurveyId = $jobCategoryMapper->fetchOneByUuid($jobCategoryId);
352
                        $hydrator->hydrate($dataPost, $JobCategorySurveyId);
356
                        $hydrator->hydrate($dataPost, $JobCategorySurveyId);
353
                        $survey_id = $survey->id;
357
                        $survey_id = $survey->id;