From: hickert Date: Wed, 2 Apr 2008 14:38:10 +0000 (+0000) Subject: Some minor changes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=523dfdef2a27ee82308ecd9e96327256717b97d5;p=gosa.git Some minor changes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10122 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc b/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc index bc11e3b8a..a14d87c8f 100644 --- a/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc +++ b/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc @@ -96,8 +96,7 @@ class sudo extends plugin { /* Call parent execute */ plugin::execute(); - - + /********************* NEGATE values *********************/ diff --git a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc index e15882dfd..8c003e4a9 100644 --- a/gosa-core/plugins/admin/sudo/class_sudoOptions.inc +++ b/gosa-core/plugins/admin/sudo/class_sudoOptions.inc @@ -211,6 +211,14 @@ class sudo_options extends plugin function save_object() { plugin::save_object(); + + foreach($this->sudoOption as $name => $opt){ + if(in_array($this->options[$name]['TYPE'],array("STRING","INTEGER"))){ + if(isset($_POST['option_value__'.$name])){ + $this->sudoOption[$name]['VALUE'] = get_post('option_value__'.$name); + } + } + } } /* Save to LDAP */ diff --git a/gosa-core/plugins/admin/sudo/options.tpl b/gosa-core/plugins/admin/sudo/options.tpl index 2457d574b..2cac4f0e0 100644 --- a/gosa-core/plugins/admin/sudo/options.tpl +++ b/gosa-core/plugins/admin/sudo/options.tpl @@ -24,18 +24,18 @@ {elseif $options[$item.NAME].TYPE == "BOOLEAN"} {elseif $options[$item.NAME].TYPE == "BOOL_INTEGER"} - - + {elseif $options[$item.NAME].TYPE == "STRING_BOOL"} - - + {else} {$options[$item.NAME].TYPE}