summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f87857)
raw | patch | inline | side by side (parent: 1f87857)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Jun 2007 08:57:42 +0000 (08:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Jun 2007 08:57:42 +0000 (08:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6647 594d385d-05f5-0310-b6e9-bd551577e9d8
index 244af77bde30cf836f0e256d61a0bf2e60e328b0..52b4e76b03076afe4ab00cb11d11248bdb63aafd 100644 (file)
var $FAIscript = "";
var $description = "";
var $status = "new";
-
+ var $parent = NULL;
var $FAIstate = "";
function faiHookEntry ($config, $dn= NULL,$object=false)
/* Call common method to give check the hook */
$message= plugin::check();
+ if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){
+ $message[] =_("There is already a hook with the given name.");
+ }
+
if(empty($this->FAIscript)) {
$message[]=_("Please enter a value for script.");
}
index 9c01f5489e6881b34ab391bb936b8bf2cd7c40de..72f2d200960839c07a626ddff540f3ac68a8d5e3 100644 (file)
$this->dialog= new $this->subClassName($this->config,"new");
$this->dialog->set_acl_base($this->acl_base);
$this->dialog->set_acl_category("fai");
+ $this->dialog->parent = &$this;
$this->is_dialog=true;
}
diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc
index f7473c553f4f135c9855df5a53b32d3dfd2eaf53..4f5cf2990f647fff755bbdeee24b3c1f3a999d13 100644 (file)
var $FAIscript = "";
var $description = "";
var $status = "new";
-
+ var $parent = NULL;
var $FAIstate = "";
function faiScriptEntry ($config, $dn= NULL,$object=false)
/* Call common method to give check the hook */
$message= plugin::check();
+ if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){
+ $message[] =_("There is already a script with the given name.");
+ }
+
if(empty($this->cn)){
$message[] = _("Please enter a name.");
}
index e2fe6d383f590f44754acd95477e8212290b3fca..09d8e232122a51cbcdd7e6fc3dac03aaba3f7c8d 100644 (file)
$this->dialog= new $this->subClassName($this->config,"new");
$this->dialog->set_acl_base($this->acl_base);
$this->dialog->set_acl_category("fai");
+ $this->dialog->parent = &$this;
$this->is_dialog=true;
}
}
diff --git a/plugins/admin/fai/class_faiTemplateEntry.inc b/plugins/admin/fai/class_faiTemplateEntry.inc
index 7a3c48ddf370042b058dca626bc8da9956fded21..203c789baa6769a8a6b7eb2894faffa903cc7a70 100644 (file)
var $user = "root";
var $group = "root";
var $binary = false;
-
+ var $parent = NULL;
var $FAIstate = "";
function faiTemplateEntry ($config, $dn= NULL,$object=false)
/* Call common method to give check the hook */
$message= plugin::check();
+ if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){
+ $message[] =_("There is already a template with the given name.");
+ }
+
if(empty($this->FAItemplateFile)){
$message[]=_("Please specify a value for attribute 'file'.");
}
index dce2b16f39e5b03985595b8e40e025480c95d019..f275209efd8083132075c471e2d6b6e8f2b78239 100644 (file)
$this->dialog= new $this->subClassName($this->config,"new");
$this->dialog->set_acl_base($this->acl_base_for_current_object($this->dn));
$this->dialog->set_acl_category("fai");
+ $this->dialog->parent = &$this;
$this->is_dialog=true;
}
$this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$var]);
$this->dialog->set_acl_category("fai");
$this->dialog->set_acl_base($c_dn);
+ $this->dialog->parent = &$this;
$_SESSION['objectinfo'] = $this->SubObjects[$var]['dn'];
$this->is_dialog=true;
}
diff --git a/plugins/admin/fai/class_faiVariableEntry.inc b/plugins/admin/fai/class_faiVariableEntry.inc
index 6dc864d17c9ba9fadef3a28bff5a15101b6a6439..ce47af952a3d6623b1aeea4f53dacce9df55d310 100644 (file)
var $FAIvariableContent = "";
var $description = "";
var $status = "new";
-
+ var $parent = NULL;
var $FAIstate = "";
function faiVariableEntry ($config, $dn= NULL,$object=false)
{
/* Call common method to give check the hook */
$message= plugin::check();
+
+ if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){
+ $message[] =_("There is already a variable with the given name.");
+ }
if(empty($this->FAIvariableContent)) {
$message[]=_("Please specify a value for the attribute 'content'.");