Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 4653 Rev 4661
Línea 97... Línea 97...
97
 
97
 
98
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
98
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
99
                    $order_direction = 'ASC';
99
                    $order_direction = 'ASC';
Línea -... Línea 100...
-
 
100
                }
-
 
101
 
-
 
102
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
-
 
103
                $allowAdd = $acl->isAllowed($currentUser->usertype_id, 'survey/add');
-
 
104
                $allowEdit = $acl->isAllowed($currentUser->usertype_id, 'survey/edit');
-
 
105
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'survey/delete');
100
                }
106
                $allowSegment = $acl->isAllowed($currentUser->usertype_id, 'survey/segment');
101
 
107
 
Línea 102... Línea 108...
102
                $surveyMapper = SurveyMapper::getInstance($this->adapter);
108
                $surveyMapper = SurveyMapper::getInstance($this->adapter);
103
                $paginator = $surveyMapper->fetchAllDataTableByCompanyId($currentCompany->id, $search, $page, $records_x_page, $order_field, $order_direction);
109
                $paginator = $surveyMapper->fetchAllDataTableByCompanyId($currentCompany->id, $search, $page, $records_x_page, $order_field, $order_direction);
Línea 158... Línea 164...
158
        if ($request->isPost()) {
164
        if ($request->isPost()) {
Línea 159... Línea 165...
159
            
165
            
Línea 160... Línea 166...
160
            $form = new SurveyForm($this->adapter, $currentCompany->id);
166
            $form = new SurveyForm($this->adapter, $currentCompany->id);
161
            
167
            
162
            $dataPost = $request->getPost()->toArray();
-
 
163
            $dataPost['status'] = isset($dataPost['status']) ? $dataPost['status'] : SurveyForm::STATUS_INACTIVE;
-
 
164
 
-
 
Línea 165... Línea 168...
165
          
168
            $dataPost = $request->getPost()->toArray();
Línea 166... Línea 169...
166
            
169
            $dataPost['status'] = isset($dataPost['status']) ? $dataPost['status'] : SurveyForm::STATUS_INACTIVE;           
167
 
170