Línea 94... |
Línea 94... |
94 |
}
|
94 |
}
|
95 |
}
|
95 |
}
|
96 |
}
|
96 |
}
|
Línea 97... |
Línea 97... |
97 |
|
97 |
|
98 |
if ($isJson) {
|
98 |
if ($isJson) {
|
Línea 99... |
Línea 99... |
99 |
$organizationalClimate_uuid = $this->params()->fromRoute('organizationalClimate_id');
|
99 |
$organizationalClimate_uuid = $this->params()->fromRoute('organizational_climate_id');
|
100 |
|
100 |
|
101 |
if(!$organizationalClimate_uuid){
|
101 |
if(!$organizationalClimate_uuid){
|
102 |
return new JsonModel([
|
102 |
return new JsonModel([
|
Línea 140... |
Línea 140... |
140 |
'first_name' => $record->first_name,
|
140 |
'first_name' => $record->first_name,
|
141 |
'last_name' => $record->last_name,
|
141 |
'last_name' => $record->last_name,
|
142 |
'date' => $record->added_on,
|
142 |
'date' => $record->added_on,
|
Línea 143... |
Línea 143... |
143 |
|
143 |
|
144 |
'actions' => [
|
144 |
'actions' => [
|
145 |
'link_delete' => $this->url()->fromRoute('organizational-climate/test/delete', ['id' => $record->id, 'organizationalClimate_id' => $organizationalClimate->uuid]),
|
145 |
'link_delete' => $this->url()->fromRoute('organizational-climate/test/delete', ['id' => $record->id, 'organizational_climate_id' => $organizationalClimate->uuid]),
|
146 |
'link_report' => $this->url()->fromRoute('organizational-climate/test/report', ['uuid' => $record->uuid, 'organizationalClimate_id' => $organizationalClimate->uuid])
|
146 |
'link_report' => $this->url()->fromRoute('organizational-climate/test/report', ['uuid' => $record->uuid, 'organizational_climate_id' => $organizationalClimate->uuid])
|
147 |
]
|
147 |
]
|
Línea 148... |
Línea 148... |
148 |
];
|
148 |
];
|
149 |
|
149 |
|
Línea 188... |
Línea 188... |
188 |
$currentCompany = $currentUserPlugin->getCompany();
|
188 |
$currentCompany = $currentUserPlugin->getCompany();
|
189 |
$currentUser = $currentUserPlugin->getUser();
|
189 |
$currentUser = $currentUserPlugin->getUser();
|
Línea 190... |
Línea 190... |
190 |
|
190 |
|
Línea 191... |
Línea 191... |
191 |
$request = $this->getRequest();
|
191 |
$request = $this->getRequest();
|
Línea 192... |
Línea 192... |
192 |
|
192 |
|
193 |
$organizationalClimate_id = $this->params()->fromRoute('organizationalClimate_id');
|
193 |
$organizational_climate_id = $this->params()->fromRoute('organizational_climate_id');
|
194 |
|
194 |
|
Línea 195... |
Línea 195... |
195 |
if ($request->isGet()) {
|
195 |
if ($request->isGet()) {
|
196 |
$organizationalClimateMapper = OrganizationalClimateMapper::getInstance($this->adapter);
|
196 |
$organizationalClimateMapper = OrganizationalClimateMapper::getInstance($this->adapter);
|
Línea 197... |
Línea 197... |
197 |
$organizationalClimate = $organizationalClimateMapper->fetchOneByUuid($organizationalClimate_id);
|
197 |
$organizationalClimate = $organizationalClimateMapper->fetchOneByUuid($organizational_climate_id);
|
Línea 222... |
Línea 222... |
222 |
$hydrator = new ObjectPropertyHydrator();
|
222 |
$hydrator = new ObjectPropertyHydrator();
|
223 |
$organizationalClimate = new OrganizationalClimateTest();
|
223 |
$organizationalClimate = new OrganizationalClimateTest();
|
224 |
$hydrator->hydrate($dataPost, $organizationalClimate);
|
224 |
$hydrator->hydrate($dataPost, $organizationalClimate);
|
Línea 225... |
Línea 225... |
225 |
|
225 |
|
226 |
$organizationalClimateDoneMapper = OrganizationalClimateMapper::getInstance($this->adapter);
|
226 |
$organizationalClimateDoneMapper = OrganizationalClimateMapper::getInstance($this->adapter);
|
Línea 227... |
Línea 227... |
227 |
$organizationalClimateDone = $organizationalClimateDoneMapper->fetchOneByUuid($organizationalClimate_id);
|
227 |
$organizationalClimateDone = $organizationalClimateDoneMapper->fetchOneByUuid($organizational_climate_id);
|
228 |
|
228 |
|
Línea 229... |
Línea 229... |
229 |
$organizationalClimate->company_id = $currentCompany->id;
|
229 |
$organizationalClimate->company_id = $currentCompany->id;
|
230 |
$organizationalClimate->organizationalClimate_id = $organizationalClimateDone->id;
|
230 |
$organizationalClimate->organizational_climate_id = $organizationalClimateDone->id;
|
Línea 231... |
Línea 231... |
231 |
|
231 |
|
Línea 383... |
Línea 383... |
383 |
$organizationalClimateTestMapper = OrganizationalClimateTestMapper::getInstance($this->adapter);
|
383 |
$organizationalClimateTestMapper = OrganizationalClimateTestMapper::getInstance($this->adapter);
|
384 |
$organizationalClimateTest = $organizationalClimateTestMapper->fetchOneByuuid($uuid);
|
384 |
$organizationalClimateTest = $organizationalClimateTestMapper->fetchOneByuuid($uuid);
|
Línea 385... |
Línea 385... |
385 |
|
385 |
|
386 |
|
386 |
|
Línea 387... |
Línea 387... |
387 |
$organizationalClimateMapper = OrganizationalClimateMapper::getInstance($this->adapter);
|
387 |
$organizationalClimateMapper = OrganizationalClimateMapper::getInstance($this->adapter);
|
388 |
$organizationalClimate = $organizationalClimateMapper->fetchOne($organizationalClimateTest->organizationalClimate_id);
|
388 |
$organizationalClimate = $organizationalClimateMapper->fetchOne($organizationalClimateTest->organizational_climate_id);
|
389 |
|
389 |
|
390 |
if (!$organizationalClimateTest) {
|
390 |
if (!$organizationalClimateTest) {
|