Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1455 Rev 1477
Línea 116... Línea 116...
116
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
116
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
117
                    $order_direction = 'ASC';
117
                    $order_direction = 'ASC';
118
                }
118
                }
Línea 119... Línea 119...
119
 
119
 
120
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
120
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
Línea 121... Línea 121...
121
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'recruitment-and-selection-vacancies/forms/delete');
121
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'recruitment-and-selection/vacancies/delete');
Línea 122... Línea 122...
122
               
122
               
123
                $allowEdit = $acl->isAllowed($currentUser->usertype_id, 'recruitment-and-selection-vacancies/forms/edit');
123
                $allowEdit = $acl->isAllowed($currentUser->usertype_id, 'recruitment-and-selection/vacancies/edit');
Línea 124... Línea 124...
124
 
124
 
Línea 140... Línea 140...
140
                            'id' => $record->id,
140
                            'id' => $record->id,
141
                            'name' => $record->name,
141
                            'name' => $record->name,
142
                            'job_description' => $jobDescription->name,
142
                            'job_description' => $jobDescription->name,
143
                            'status' => $record->status,
143
                            'status' => $record->status,
144
                            'actions' => [
144
                            'actions' => [
145
                                'link_edit' => $this->url()->fromRoute('recruitment-and-selection-vacancies/forms/edit', ['id' => $record->uuid]),
145
                                'link_edit' => $this->url()->fromRoute('recruitment-and-selection/vacancies/edit', ['id' => $record->uuid]),
146
                                'link_delete' => $this->url()->fromRoute('recruitment-and-selection-vacancies/forms/delete', ['id' => $record->uuid])
146
                                'link_delete' => $this->url()->fromRoute('recruitment-and-selection/vacancies/delete', ['id' => $record->uuid])
147
                            ]
147
                            ]
148
                        ];
148
                        ];
149
                    }
149
                    }
Línea 150... Línea 150...
150
 
150
 
Línea 374... Línea 374...
374
 
374
 
375
                if ($result) {
375
                if ($result) {
376
                    $this->logger->info('Se agrego el candidato' . $recruitmentCandidate->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
376
                    $this->logger->info('Se agrego el candidato' . $recruitmentCandidate->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
377
                    $data = [
377
                    $data = [
378
                        'success' => true,
-
 
379
                        'id' => $recruitmentCandidate->id,
-
 
380
                        'action_edit' => $this->url()->fromRoute('recruitment-and-selection-vacancies/forms/edit', ['id' => $recruitmentCandidate->uuid]),
378
                        'success' => true,
381
                        'data' => 'LABEL_RECORD_UPDATED'
379
                        'data' => 'LABEL_RECORD_UPDATED'
382
                    ];
380
                    ];
383
                } else {
381
                } else {
384
                    $data = [
382
                    $data = [