瀏覽代碼

The trigger USER_SETINGROUP and USER_REMOVEFROMGROUP has been replaced
with trigger USER_MODIFY

Laurent Destailleur 8 年之前
父節點
當前提交
372cb40cf9
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      ChangeLog
  2. 2 2
      htdocs/user/class/user.class.php

+ 2 - 2
ChangeLog

@@ -2,13 +2,13 @@
 English Dolibarr ChangeLog
 --------------------------------------------------------------
 
-***** ChangeLog for 5.0.0 compared to 4.0.* *****
+***** ChangeLog for 6.0.0 compared to 5.0.* *****
 
 WARNING: 
 
 Following changes may create regression for some external modules, but were necessary to make Dolibarr better:
 * The hook getNodeList has been replaced by a normalized 'addreplace' hook getDirList.
-
+* The trigger USER_SETINGROUP and USER_REMOVEFROMGROUP has been replaced with trigger USER_MODIFY.
  
 
 ***** ChangeLog for 5.0.0 compared to 4.0.* *****

+ 2 - 2
htdocs/user/class/user.class.php

@@ -1859,7 +1859,7 @@ class User extends CommonObject
 			    $this->context = array('audit'=>$langs->trans("UserSetInGroup"), 'newgroupid'=>$group);
 			     
 			    // Call trigger
-                $result=$this->call_trigger('USER_SETINGROUP',$user);
+                $result=$this->call_trigger('USER_MODIFY',$user);
 	            if ($result < 0) { $error++; }
                 // End call triggers
 			}
@@ -1914,7 +1914,7 @@ class User extends CommonObject
 			    $this->context = array('audit'=>$langs->trans("UserRemovedFromGroup"), 'oldgroupid'=>$group);
 			    
 			    // Call trigger
-                $result=$this->call_trigger('USER_REMOVEFROMGROUP',$user);
+                $result=$this->call_trigger('USER_MODIFY',$user);
                 if ($result < 0) { $error++; }
                 // End call triggers
 			}