diff --git a/plugins/admin/systems/class_servRepositorySetup.inc b/plugins/admin/systems/class_servRepositorySetup.inc
index 3ed15dfab94241b51f7085c9bad3784380a61024..40f37b0628acca88f431cc89042a7e16b31cdcf2 100644 (file)
var $cn = "";
var $parent = "";
- function servRepositorySetup ($config, $dn= NULL,$data = false)
+ function servRepositorySetup (&$config, $dn= NULL,$data = false)
{
plugin::plugin ($config, $dn);
if($data != false){
/* Save data to object */
function save_object()
- {
- plugin::save_object();
+ {
+ if(isset($_POST['servRepositorySetup_Posted'])) {
+
+ foreach($this->attributes as $attr){
+ if(($this->parent->acl_is_writeable($attr)) && (isset($_POST[$attr]))){
+ $this->$attr = $_POST[$attr];
+ }
+ }
+ }
}
function GetHookElements()
{
$ret = array();
- $cmd= search_config($this->config->data['TABS'], "servrepository", "REPOSITORY_HOOK");
+ $cmd = $this->config->search("servrepository", "REPOSITORY_HOOK",array('tabs'));
if(!empty($cmd)){
$res = shell_exec($cmd);
$res2 = trim($res);