X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fadmin%2Fsystems%2Fgoto%2FConfig%2Fclass_TemplateWidget.inc;h=d686439c19832711746d834c7640ec277db9fbcc;hb=b8fc08ad32f329a5d7b7d8432485f1dbd5555191;hp=0f92ffb185d59f0a531b8ef341c057cfc096a09b;hpb=1e2796a8401c9c1a4b5ac8298519633e4c7256cb;p=gosa.git diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc index 0f92ffb18..d686439c1 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc @@ -19,22 +19,25 @@ class TemplateWidget $this->required = $required; $this->type = $type; $this->display = $display; + $class = get_class(); + $this->postName = "{$class}_{$this->name}"; + } + + function getDisplayName() + { + return($this->display); } function render() { - - $class = get_class(); - return("{$this->display} name}\" value=\"".set_post($this->value)."\">"); + return(""); } function save_object() { - $class = get_class(); - $name = "{$class}_{$this->name}"; - if(isset($_POST[$name])){ - $this->value = get_post($name); + if(isset($_POST[$this->postName])){ + $this->value = get_post($this->postName); } }