2009-01-12 Esteban Sanchez <estebans@artica.es>

* godmode/alerts/configure_alert_template.php: Fixed a bug when going
        forward from step 2 when creating a template.

        * pandoradb_migrate_20_to_21.sql: Added a comment on a line which was
        missing it.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1339 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
esanchezm 2009-01-14 09:22:07 +00:00
parent e5950e9ad0
commit b934a2612a
3 changed files with 16 additions and 6 deletions

View File

@ -1,4 +1,12 @@
2009-01-12 Sancho Lerena <lsrena@artica.es> 2009-01-12 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_template.php: Fixed a bug when going
forward from step 2 when creating a template.
* pandoradb_migrate_20_to_21.sql: Added a comment on a line which was
missing it.
2009-01-12 Sancho Lerena <slrena@artica.es>
* functions_db.php, * functions_db.php,
* godmode/agentes/configurar_agente.php: Delete module deletes * godmode/agentes/configurar_agente.php: Delete module deletes

View File

@ -35,7 +35,7 @@ function print_alert_template_steps ($step, $id) {
/* Step 1 */ /* Step 1 */
if ($step == 1) if ($step == 1)
echo '<strong>'; echo '<strong>';
if ($id) { if ($id && ! isset ($_POST['create_template'])) {
echo '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$id.'">'; echo '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$id.'">';
echo __('Step').' 1 : '.__('Conditions'); echo __('Step').' 1 : '.__('Conditions');
echo '</a>'; echo '</a>';
@ -50,7 +50,7 @@ function print_alert_template_steps ($step, $id) {
if ($step == 2) if ($step == 2)
echo '<strong>'; echo '<strong>';
if ($id) { if ($id && ! isset ($_POST['create_template'])) {
echo '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$id.'&step=2">'; echo '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$id.'&step=2">';
echo __('Step').' 2 : '.__('Firing'); echo __('Step').' 2 : '.__('Firing');
echo '</a>'; echo '</a>';
@ -65,7 +65,7 @@ function print_alert_template_steps ($step, $id) {
if ($step == 3) if ($step == 3)
echo '<strong>'; echo '<strong>';
if ($id) { if ($id && ! isset ($_POST['create_template'])) {
echo '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$id.'&step=3">'; echo '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$id.'&step=3">';
echo __('Step').' 3 : '.__('Recovery'); echo __('Step').' 3 : '.__('Recovery');
echo '</a>'; echo '</a>';
@ -220,6 +220,8 @@ if ($create_template) {
/* Go to previous step in case of error */ /* Go to previous step in case of error */
if ($result === false) if ($result === false)
$step = $step - 1; $step = $step - 1;
else
$id = $result;
} }
if ($update_template) { if ($update_template) {
@ -233,7 +235,7 @@ if ($update_template) {
} }
} }
if ($id) { if ($id && ! $create_template) {
$template = get_alert_template ($id); $template = get_alert_template ($id);
$name = $template['name']; $name = $template['name'];
$description = $template['description']; $description = $template['description'];

View File

@ -111,7 +111,7 @@ talert_template_modules(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- If you have custom stuff here, please make sure you manually -- If you have custom stuff here, please make sure you manually
migrate it. -- migrate it.
-- DROP TABLE `talerta` -- DROP TABLE `talerta`