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/enumProvPromo.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:358487688695f5b2118b395-17853631%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'122e89406dbe002f566e6815ec2a407c292b9e7c' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/lists/enumProvPromo.tpl',
|
||||
1 => 1767856721,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '358487688695f5b2118b395-17853631',
|
||||
'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('proveedores')->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="idProveedor[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['proveedorId'];?>
|
||||
" <?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