mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSldapObject : remove unsed variable $submitError fixing object's after_modify trigger bug
This commit is contained in:
parent
bfe61bce73
commit
c989346360
1 changed files with 1 additions and 5 deletions
|
@ -39,7 +39,6 @@ class LSldapObject {
|
||||||
var $dn=false;
|
var $dn=false;
|
||||||
var $oldDn=false;
|
var $oldDn=false;
|
||||||
var $other_values=array();
|
var $other_values=array();
|
||||||
var $submitError=true;
|
|
||||||
var $_whoami=NULL;
|
var $_whoami=NULL;
|
||||||
var $_LSrelationsCache=array();
|
var $_LSrelationsCache=array();
|
||||||
|
|
||||||
|
@ -349,9 +348,7 @@ class LSldapObject {
|
||||||
if ($this -> submitChange($idForm)) {
|
if ($this -> submitChange($idForm)) {
|
||||||
LSdebug('Les modifications sont submitées');
|
LSdebug('Les modifications sont submitées');
|
||||||
// Event After Modify
|
// Event After Modify
|
||||||
if(!$this -> submitError) {
|
$this -> fireEvent('after_modify');
|
||||||
$this -> fireEvent('after_modify');
|
|
||||||
}
|
|
||||||
|
|
||||||
// $this -> attrs[*] => After Modify
|
// $this -> attrs[*] => After Modify
|
||||||
foreach($new_data as $attr_name => $attr_val) {
|
foreach($new_data as $attr_name => $attr_val) {
|
||||||
|
@ -359,7 +356,6 @@ class LSldapObject {
|
||||||
$this -> attrs[$attr_name] -> fireEvent('after_modify');
|
$this -> attrs[$attr_name] -> fireEvent('after_modify');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this -> submitError = false;
|
|
||||||
$this -> reloadData();
|
$this -> reloadData();
|
||||||
$this -> refreshForm($idForm);
|
$this -> refreshForm($idForm);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue