index f65abf39fd8712b55fc47cacfdcf50398e0b6232..81a798b5876e808fb4728848a4f9d7c178c33136 100644 (file)
// Whether to display the apply button or not
protected $displayApplyBtn = "";
+ // Whether to display a footer or not.
+ protected $skipFooter = false;
+
// Copy&Paste handler
protected $cpHandler = null;
// A list of configured actions/events
protected $actions = array();
- function __construct($config,$ui,$plugname, $headpage)
+ function __construct(&$config,$ui,$plugname, $headpage)
{
$this->plugname = $plugname;
$this->headpage = $headpage;
}
}
+ // Skip footer if requested;
+ if($this->skipFooter) return("");
+
// In case an of locked entry, we may have opened a read-only tab.
$str = "";
if(isset($this->tabObject->read_only) && $this->tabObject->read_only == TRUE){
// Delete the object
$this->dn = $dn;
- $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory, false, true);
+ $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory, true, true);
$this->tabObject->set_acl_base($this->dn);
$this->tabObject->delete ();
$this->tabObject->parent = &$this;
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$this->dns,"Edit entry initiated!");
// Now lock entries.
- $tmp->lock_entries($this->ui->dn);
if($tmp->multiple_available()){
+ $tmp->lock_entries($this->ui->dn);
$this->tabObject = $tmp;
set_object_info($this->tabObject->get_object_info());
}