mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Actualizacion automatica: 2024-05-07 21:16:26
This commit is contained in:
@ -129,7 +129,7 @@ class Cliente extends \App\Controllers\BaseResourceController
|
||||
$this->viewData['userList2'] = $this->getUserListItems2($clienteEntity->soporte_id ?? null);
|
||||
$this->viewData['formaDePagoList'] = $this->getFormaDePagoListItems($clienteEntity->forma_pago_id ?? null);
|
||||
|
||||
$this->viewData['formAction'] = site_url('cliente/add'); // route_to('createCliente'); IMN
|
||||
$this->viewData['formAction'] = route_to('clienteAdd');
|
||||
|
||||
$this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . lang('Clientes.moduleTitle') . ' ' . lang('Basic.global.addNewSuffix');
|
||||
|
||||
@ -227,7 +227,7 @@ class Cliente extends \App\Controllers\BaseResourceController
|
||||
$this->viewData['userList2'] = $this->getUserListItems2($clienteEntity->soporte_id ?? null);
|
||||
$this->viewData['formaDePagoList'] = $this->getFormaDePagoListItems($clienteEntity->forma_pago_id ?? null);
|
||||
|
||||
$this->viewData['formAction'] = route_to('updateCliente', $id);
|
||||
$this->viewData['formAction'] = route_to('clienteEdit', $id);
|
||||
|
||||
$this->viewData['boxTitle'] = lang('Basic.global.edit2') . ' ' . lang('Clientes.moduleTitle') . ' ' . lang('Basic.global.edit3');
|
||||
|
||||
@ -355,10 +355,10 @@ class Cliente extends \App\Controllers\BaseResourceController
|
||||
protected function getUserListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Users.user'))])];
|
||||
if (!empty($selId)) :
|
||||
$userModel = model('App\Models\Usuarios\UserModel');
|
||||
if (!is_null($selId)) :
|
||||
$userModel = model('App\Models\UserModel');
|
||||
|
||||
$selOption = $userModel->where('id_user', $selId)->findColumn('first_name');
|
||||
$selOption = $userModel->where('id', $selId)->findColumn('first_name');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
@ -370,7 +370,7 @@ class Cliente extends \App\Controllers\BaseResourceController
|
||||
protected function getComunidadAutonomaListItems($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('ComunidadesAutonomas.comunidadAutonoma'))])];
|
||||
if (!empty($selId)) :
|
||||
if (!is_null($selId)) :
|
||||
$comunidadAutonomaModel = model('App\Models\Configuracion\ComunidadAutonomaModel');
|
||||
|
||||
$selOption = $comunidadAutonomaModel->where('id', $selId)->findColumn('nombre');
|
||||
@ -385,10 +385,10 @@ class Cliente extends \App\Controllers\BaseResourceController
|
||||
protected function getUserListItems2($selId = null)
|
||||
{
|
||||
$data = ['' => lang('Basic.global.pleaseSelectA', [mb_strtolower(lang('Users.user'))])];
|
||||
if (!empty($selId)) :
|
||||
$userModel = model('App\Models\Configuracion\UserModel');
|
||||
if (!is_null($selId)) :
|
||||
$userModel = model('App\Models\UserModel');
|
||||
|
||||
$selOption = $userModel->where('id_user', $selId)->findColumn('last_name');
|
||||
$selOption = $userModel->where('id', $selId)->findColumn('last_name');
|
||||
if (!empty($selOption)) :
|
||||
$data[$selId] = $selOption[0];
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user