Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1475 Rev 1477
Línea 86... Línea 86...
86
                    }
86
                    }
87
                }
87
                }
88
            }
88
            }
Línea 89... Línea 89...
89
 
89
 
90
            if ($isJson) {
90
            if ($isJson) {
Línea -... Línea 91...
-
 
91
                //$form_uuid = filter_var($this->params()->fromQuery('form_uuid'), FILTER_SANITIZE_STRING);
-
 
92
 
91
                $form_uuid = filter_var($this->params()->fromQuery('form_uuid'), FILTER_SANITIZE_STRING);
93
                $vacancy_uuid = $this->params()->fromRoute('vacancy_id');
92
 
94
                
93
                $data = [
95
                $data = [
94
                    'items' => [],
96
                    'items' => [],
Línea 95... Línea 97...
95
                    'total' => 0,
97
                    'total' => 0,
96
                ];
98
                ];
97
 
99
 
98
 
100
 
99
                if (!$form_uuid) {
101
                if (!$vacancy_uuid) {
100
                    return new JsonModel([
102
                    return new JsonModel([
Línea 101... Línea 103...
101
                        'success' => true,
103
                        'success' => true,
102
                        'data' => $data
104
                        'data' => $data
103
                    ]);
105
                    ]);
104
                }
106
                }
105
 
107
 
106
 
108
 
107
                $formMapper = RecruitmentSelectionVacancyMapper::getInstance($this->adapter);
109
                $vacancyMapper = RecruitmentSelectionVacancyMapper::getInstance($this->adapter);
108
                $form = $formMapper->fetchOneByUuid($form_uuid);
110
                $vacancy = $vacancyMapper->fetchOneByUuid($vacancy_uuid);
Línea 109... Línea 111...
109
                if (!$form) {
111
                if (! $vacancy) {
110
                    return new JsonModel([
112
                    return new JsonModel([
111
                        'success' => true,
113
                        'success' => true,
112
                        'data' => 'ERROR_FORM_NOT_FOUND'
114
                        'data' => 'ERROR_FORM_NOT_FOUND'
113
                    ]);
115
                    ]);
114
                }
116
                }