fix(promociones): Resuelve múltiples advertencias y errores en promociones y sucursales
- Se corrigieron las advertencias 'Undefined array key "checked"' en 'enumProvPromo.tpl', 'enumSucPromo.tpl' y 'enumProdCatPromo.tpl'. - Se resolvieron las advertencias 'Trying to access array offset on null' en 'enumTiposPromo.tpl', 'enumDesctosPromo.tpl', 'enumStatusPromo.tpl', 'enumVigenciaPromo.tpl' y 'enumPromoAplicar.tpl'. - Se corrigió el error 'Call to undefined method Util::DecodeUrlRow()' en 'ajax/sucursales.php' reemplazándolo por 'DecodeUrlResult()'. - Se modificó 'templates/lists/sucursales.tpl' para evitar la inclusión de 'pages_ajax.tpl' cuando la variable '$pages' es nula. - Se eliminaron archivos de log y temporales.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-08 01:22:09
|
||||
compiled from "/var/www/html/ventas/templates/lists/enumSucPromo.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:229259832695f5b21169fc9-03211752%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'3a819890283f7957d929db0fb196da3fe21992b6' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/lists/enumSucPromo.tpl',
|
||||
1 => 1767856884,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '229259832695f5b21169fc9-03211752',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
|
||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
||||
?>
|
||||
<input type="checkbox" name="idSucursal[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
||||
" <?php if (isset($_smarty_tpl->getVariable('item')->value['checked'])&&$_smarty_tpl->getVariable('item')->value['checked']){?>checked<?php }?> /><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
||||
|
||||
<br />
|
||||
<?php }} ?>
|
||||
Reference in New Issue
Block a user