Code

Fixed attachment for printer
[gosa.git] / plugins / admin / applications / class_applicationParameters.inc
index 663068805656905a94c79e6305adeabcb9611ac2..da2bc67ccda9a92b266141c5739d828f2c780ce3 100644 (file)
@@ -37,6 +37,7 @@ class applicationParameters extends plugin
   {
        /* Call parent execute */
        plugin::execute();
+
        /* Do we need to flip is_account state? */
        if (isset($_POST['modify_state'])){
                $this->is_account= !$this->is_account;
@@ -51,6 +52,7 @@ class applicationParameters extends plugin
                } else {
                        $display= $this->show_header(_("Create options"),
                                _("This application has options disabled. You can enable them by clicking below."));
+                       $this->parent->by_object['application']->generateTemplate();
                        return ($display);
                }
        }
@@ -103,6 +105,7 @@ class applicationParameters extends plugin
        $smarty= get_smarty();
        $smarty->assign("table", $table);
        $display.= $smarty->fetch(get_template_path('parameters.tpl', TRUE));
+       $this->parent->by_object['application']->generateTemplate();
        return ($display);
   }