mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Arreglando profile y pequeños bugs
This commit is contained in:
@ -193,6 +193,7 @@ class Group extends \App\Controllers\GoBaseController
|
||||
// IMN hacer las configuraciones hard coded
|
||||
helper('rbac');
|
||||
generate_php_roles_constant();
|
||||
generate_php_permissions_constant();
|
||||
generate_php_permissions_matrix_constant();
|
||||
|
||||
$id = $groupEntity->id ?? $id;
|
||||
|
||||
@ -62,20 +62,14 @@ class Paises extends \App\Controllers\BaseResourceController
|
||||
public function add()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
if ($this->request->getPost()) :
|
||||
|
||||
$nullIfEmpty = true; // !(phpversion() >= '8.1');
|
||||
|
||||
$postData = $this->request->getPost();
|
||||
|
||||
$sanitizedData = $this->sanitized($postData, $nullIfEmpty);
|
||||
|
||||
$sanitizedData = $this->sanitized($postData, true);
|
||||
|
||||
$noException = true;
|
||||
if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) :
|
||||
if ($successfulResult = $this->canValidate()) :
|
||||
|
||||
|
||||
if ($this->canValidate()) :
|
||||
@ -113,9 +107,7 @@ class Paises extends \App\Controllers\BaseResourceController
|
||||
endif; // ($requestMethod === 'post')
|
||||
|
||||
$this->viewData['paisEntity'] = isset($sanitizedData) ? new PaisEntity($sanitizedData) : new PaisEntity();
|
||||
|
||||
$this->viewData['formAction'] = route_to('createPais');
|
||||
|
||||
$this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . lang('Paises.moduleTitle') . ' ' . lang('Basic.global.addNewSuffix');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user