summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6053541)
raw | patch | inline | side by side (parent: 6053541)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Apr 2008 14:38:10 +0000 (14:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Apr 2008 14:38:10 +0000 (14:38 +0000) |
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 bc11e3b8a3cdb826280951618331814a8e5ddd24..a14d87c8f6cfa11449928fee5044725bcbc7b2cc 100644 (file)
{
/* 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 e15882dfdb506cbe7453114c3903288397b33eed..8c003e4a9a5c2c0c7f3d81337092e170c002297e 100644 (file)
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 */
index 2457d574b6c1c64a84a149f2d5b85bfebc9c8bb4..2cac4f0e07bd99676e73cea3884e954a389d63c2 100644 (file)
{elseif $options[$item.NAME].TYPE == "BOOLEAN"}
<input type='checkbox' value="1" name='option_value__{$key}'>
{elseif $options[$item.NAME].TYPE == "BOOL_INTEGER"}
- <select name="">
+ <select name="option_selection__{$key}">
<option {if $item.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
<option {if $item.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
<option {if $item.VALUE != "TRUE" && $item.VALUE != "FALSE"} selected {/if}value="STRING">STRING</option>
- <input type='text' value="{$item.VALUE.0}" style='width:280px;'>
+ <input type='text' value="{$item.VALUE.0}" style='width:280px;' name='option_value__{$key}'>
</select>
{elseif $options[$item.NAME].TYPE == "STRING_BOOL"}
- <select name="">
+ <select name="option_selection__{$key}">
<option {if $item.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
<option {if $item.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
<option {if $item.VALUE != "TRUE" && $item.VALUE != "FALSE"} selected {/if}value="STRING">STRING</option>
- <input type='text' value="{$item.VALUE.0}" style='width:280px;'>
+ <input type='text' value="{$item.VALUE.0}" style='width:280px;' name='option_value__{$key}'>
</select>
{else}
{$options[$item.NAME].TYPE}