diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc
index 418b462da20543cd9c7612b2b966fbe74fcc1007..d25af193635eb4537b436f683e190b6d1eebf2a0 100644 (file)
var $dn = "";
var $cn = "";
var $dn = "";
var $cn = "";
- var $FAIpriority = "";
+ var $FAIpriority = "0";
var $FAIscript = "";
var $description = "";
var $status = "new";
var $FAIscript = "";
var $description = "";
var $status = "new";
function execute()
{
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Fill templating stuff */
$smarty = get_smarty();
$display = "";
/* Fill templating stuff */
$smarty = get_smarty();
$display = "";
$this->$attrs = "";
}
}
$this->$attrs = "";
}
}
+ $this->FAIscript= recode("DOS..LATIN1", $this->FAIscript);
}
}
}
}
$message[] = _("Please enter a name.");
}
$message[] = _("Please enter a name.");
}
+ if(empty($this->FAIscript)){
+ $message[]=_("Please enter a script.");
+ }
+
return ($message);
}
return ($message);
}