diff --git a/ajax/politicas.php b/ajax/politicas.php index 972657e..a51d402 100755 --- a/ajax/politicas.php +++ b/ajax/politicas.php @@ -1,13 +1,17 @@ Info(); switch($_POST["type"]){ case 'addPolitica': + error_log("Case addPolitica executed successfully"); $smarty->assign('DOC_ROOT', DOC_ROOT); $smarty->display(DOC_ROOT.'/templates/boxes/agregar-politica-popup.tpl'); @@ -60,6 +64,10 @@ } break; + default: + echo 'fail[#]Operación no válida.'; + break; + }//switch ?> \ No newline at end of file diff --git a/templates/lists/politicas.tpl b/templates/lists/politicas.tpl index f007c1b..1e1ca94 100755 --- a/templates/lists/politicas.tpl +++ b/templates/lists/politicas.tpl @@ -13,4 +13,4 @@ Ningún registro encontrado. {/if} -{include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$atributos.pages colspan=5} \ No newline at end of file +{include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$politicas.pages colspan=5} \ No newline at end of file