diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc
index 69ccc8f03dbd1b48749addefecbd0e981e8f6d28..c803aff4d3d823cf88993cd080a1a6cb0be0beff 100644 (file)
var $option_value= array();
/* attribute list for save action */
- var $attributes= array();
+ var $attributes= array("gosaApplicationParameter");
var $objectclasses= array();
function applicationParameters ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+ $this->gosaApplicationParameter = array();
+
if (isset($this->attrs['gosaApplicationParameter'])){
$this->is_account= TRUE;
for ($i= 0; $i<$this->attrs['gosaApplicationParameter']['count']; $i++){
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$this->cleanup();
-$ldap->modify ($this->attrs);
+ $ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of application parameters with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
$this->handle_post_events('remove');
/* Check values */
function check()
{
- $message= array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
/* Check for valid option names */
for ($i= 0; $i<count($this->option_name); $i++){
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$this->cleanup();
-$ldap->modify ($this->attrs);
+ $ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of application parameters with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
$this->handle_post_events('modify');