summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5cfa610)
raw | patch | inline | side by side (parent: 5cfa610)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Oct 2008 08:22:52 +0000 (08:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Oct 2008 08:22:52 +0000 (08:22 +0000) |
-Nothing was saved, if the last blocked number was removed from the list.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12728 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12728 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc
index edd51c29d9e50a713748ab26eb697781bf771a29..5c23583e711d995cb1d4c7062fbf9502a1f31c10 100644 (file)
var $goFaxBlocklist = array();
var $readonly = FALSE;
var $view_logged = FALSE;
- var $attributes = array("cn","description");
+ var $attributes = array("cn","description","goFaxSBlocklist","goFaxRBlocklist");
var $ignore_account = TRUE;
- var $orig_base = "";
- var $orig_dn = "";
+ var $orig_base = "";
+ var $orig_dn = "";
+
+ var $goFaxSBlocklist = array();
+ var $goFaxRBlocklist = array();
function __construct($config,$dn = "new")
plugin::save();
- /* Add list */
- if (count($this->goFaxBlocklist)){
- $this->attrs[$type]= $this->goFaxBlocklist;
- }
+ /* Let clenaup() know what attributes to handle
+ */
+ $this->attrs[$type] = $this->goFaxBlocklist;
+ $this->attributes [] = $type;
/* Write back to ldap */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->base);
$ldap->cat($this->dn, array('dn'));
if ($ldap->count()){
- if (!isset($this->attrs[$type])){
- $this->attrs[$type]= array();
- }
$ldap->cd($this->dn);
$this->cleanup();
$ldap->modify($this->attrs);
$ldap->cd($this->config->current['BASE']);
$ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
$ldap->cd($this->dn);
+ $this->cleanup();
$ldap->add($this->attrs);
new log("create","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
$this->handle_post_events("add");