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.");
}