summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 43dac58)
raw | patch | inline | side by side (parent: 43dac58)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Apr 2011 09:02:37 +0000 (09:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Apr 2011 09:02:37 +0000 (09:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20773 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/TemplateEngine.tpl b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/TemplateEngine.tpl
index 9372b25ebfef879bee9e939764289d7041565e0d..99be426283e73d90046dccb3fba0899f5d60cb1d 100644 (file)
<button name='saveItemEdit'>{msgPool type=okButton}</button>
<button name='cancelItemEdit'>{msgPool type=cancelButton}</button>
</div>
-
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_checkbox.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_checkbox.inc
index 43318395e27a439bba95fc32e6cb79835f9ebcde..27488cbef79da5d8f2fd178f8e98ae115877c229 100644 (file)
--- a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_checkbox.inc
+++ b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_checkbox.inc
$str = "";
$disabled = (!$this->enabled)? "disabled" : "";
$str .= "<input type='checkbox' value='1' name='{$this->postName}' {$disabled}";
- if($this->value) $str .= " checked ";
+
+ if($this->value) $str .= " checked ";
+
$str .= ">";
+
+ $str .= "<input type='hidden' name='{$this->postName}_posted' value='1'>";
return($str);
}
function save_object()
{
- $this->value = isset($_POST[$this->postName]);
+ if(isset($_POST["{$this->postName}_posted"])){
+ $this->value = isset($_POST[$this->postName]);
+ }
}
}
?>