Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11096 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11096 Rev 15386
Línea 323... Línea 323...
323
            $dataPost = $request->getPost()->toArray();
323
            $dataPost = $request->getPost()->toArray();
324
            $form->setData($dataPost);
324
            $form->setData($dataPost);
Línea 325... Línea 325...
325
            
325
            
326
            if($form->isValid()) {
326
            if($form->isValid()) {
327
                $planningObjectivesAndGoalsObjectivesMapper = PlanningObjectivesAndGoalsObjectivesMapper::getInstance($this->adapter);
327
                $planningObjectivesAndGoalsObjectivesMapper = PlanningObjectivesAndGoalsObjectivesMapper::getInstance($this->adapter);
Línea 328... Línea 328...
328
                $objectives = $planningObjectivesAndGoalsObjectivesMapper->fetchOneByUuid($objective_uuid);
328
                $objectives = $planningObjectivesAndGoalsObjectivesMapper->fetchOneByUuidAndCompanyId($objective_uuid, $currentCompany->id);
329
            
329
            
330
                if (!$objectives) {
330
                if (!$objectives) {
331
                    $data = [
331
                    $data = [
332
                        'success' => false,
332
                        'success' => false,
Línea 333... Línea 333...
333
                        'data' => 'ERROR_RECORD_NOT_FOUND'
333
                        'data' => 'ERROR_RECORD_NOT_FOUND'
334
                    ];
334
                    ];
Línea 335... Línea 335...
335
 
335
 
336
                
336
                
337
                        return new JsonModel($data);
337
                    return new JsonModel($data);