Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16787 Rev 16788
Línea 610... Línea 610...
610
 
610
 
611
        if ($request->isPost()) {
611
        if ($request->isPost()) {
612
            $form = new JobDescriptionForm($this->adapter, $currentCompany ? $currentCompany->id : null, $jobDescription->id);
612
            $form = new JobDescriptionForm($this->adapter, $currentCompany ? $currentCompany->id : null, $jobDescription->id);
Línea 613... Línea -...
613
            $dataPost = $request->getPost()->toArray();
-
 
614
 
613
            $dataPost = $request->getPost()->toArray();
Línea 615... Línea 614...
615
 
614
 
616
            $form->setData($dataPost);
-
 
617
 
-
 
618
            if ($form->isValid()) {
-
 
619
            
615
            $form->setData($dataPost);
620
                
616
 
Línea 621... Línea 617...
621
                
617
            if ($form->isValid()) {
622
                $dataPost = (array) $form->getData();
618
                $dataPost = (array) $form->getData();
623
                if(!empty($dataPost['job_description_id_boss'])) {
619
                if(!empty($dataPost['job_description_id_boss'])) {
624
                    
620
                    
625
                    $jobDescriptionBoos = $jobDescriptionMapper->fetchOneByUuid(Functions::sanitizeFilterString($dataPost['job_description_id_boss']));
621
                    $jobDescriptionBoos = $jobDescriptionMapper->fetchOneByUuid(Functions::sanitizeFilterString($dataPost['job_description_id_boss']));
626
                    if($jobDescriptionBoos && $jobDescriptionBoos->company_id == $currentCompany->id) {
622
                    if($jobDescriptionBoos && $jobDescriptionBoos->company_id == $currentCompany->id) {
627
                        $dataPost['job_description_id_boss'] = $jobDescriptionBoos->id;
-
 
628
                    } else {
-
 
629
                        $dataPost['job_description_id_boss'] = 0;
623
                        $dataPost['job_description_id_boss'] = $jobDescriptionBoos->id;
Línea 630... Línea 624...
630
                    }
624
                    } else {
631
                    
625
                        $dataPost['job_description_id_boss'] = 0;