summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3d59ca)
raw | patch | inline | side by side (parent: a3d59ca)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Dec 2007 12:16:47 +0000 (12:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Dec 2007 12:16:47 +0000 (12:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8012 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history | |
include/class_tabs.inc | patch | blob | history |
index c7b2346e5ee01c77e65fc561c24f9c0dcb4c23c6..67c572bafb3520019c6e6fbe3bfa0391dc81aa45 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
$ldap= $this->config->get_ldap_link();
if ($dn !== NULL){
- /* Get entry CSN */
- if($this->CSN_check_active){
- $this->entryCSN = getEntryCSN($dn);
- }
-
/* Load data to 'attrs' and save 'dn' */
if ($parent !== NULL){
$this->attrs= $parent->attrs;
function enable_CSN_check()
{
$this->CSN_check_active =TRUE;
+ $this->entryCSN = getEntryCSN($this->dn);
}
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 219c9d15c2d52c7a1f415300344dad4d750aa645..2127a6cdad8d8ae36086462e8cd414a2fd4e742b 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
var $by_object= array();
var $SubDialog = false;
- var $entryCSN = "";
-
function tabs(&$config, $data, $dn, $acl_category= "")
{
/* Save dn */
$baseobject= NULL;
- $this->entryCSN = getEntryCSN($dn);
-
foreach ($data as &$tab){
$this->by_name[$tab['CLASS']]= $tab['NAME'];
if ($baseobject === NULL){
$baseobject= new $tab['CLASS']($this->config, $this->dn);
+ $baseobject->enable_CSN_check();
$this->by_object[$tab['CLASS']]= $baseobject;
} else {
$this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $baseobject);
function save_object($save_current= FALSE)
{
- /* Update entry CSN if it is empty. */
- if(empty($this->entryCSN)){
- $this->entryCSN = getEntryCSN($this->dn);
- }
-
/* Save last tab */
if ($this->last != ""){
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
$current_set = FALSE;
- /* Check entryCSN */
- $current_csn = getEntryCSN($this->dn);
- if($current_csn != $this->entryCSN && !empty($this->entryCSN) && !empty($current_csn)){
- $this->entryCSN = $current_csn;
- $messages[] = _("The object has changed since opened in GOsa. Please ensure that nobody has done serious changes that may get lost if you save this entry.");
- }
-
/* Check all plugins */
foreach ($this->by_object as $key => &$obj){
if ($obj->is_account || $ignore_account || $obj->ignore_account){
function save($ignore_account= FALSE)
{
/* Save all plugins */
- $this->entryCSN = "";
foreach ($this->by_object as $key => &$obj){
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
$key, "Saving");