@@ -2231,7 +2231,7 @@ public function validate($user)
22312231
22322232
22332233 /**
2234- * Fonction qui resilie un adherent
2234+ * Function that terminates a member
22352235 *
22362236 * @param User $user User making change
22372237 * @return int Return integer <0 if KO, >0 if OK
@@ -2243,7 +2243,7 @@ public function resiliate($user)
22432243 $ error = 0 ;
22442244
22452245 // Check parameters
2246- if ($ this ->statut == self ::STATUS_RESILIATED ) {
2246+ if ($ this ->status == self ::STATUS_RESILIATED ) {
22472247 dol_syslog (get_class ($ this )."::resiliate statut of member does not allow this " , LOG_WARNING );
22482248 return 0 ;
22492249 }
@@ -2258,6 +2258,7 @@ public function resiliate($user)
22582258 $ result = $ this ->db ->query ($ sql );
22592259 if ($ result ) {
22602260 $ this ->statut = self ::STATUS_RESILIATED ;
2261+ $ this ->status = self ::STATUS_RESILIATED ;
22612262
22622263 // Call trigger
22632264 $ result = $ this ->call_trigger ('MEMBER_RESILIATE ' , $ user );
@@ -2291,7 +2292,7 @@ public function exclude($user)
22912292 $ error = 0 ;
22922293
22932294 // Check parameters
2294- if ($ this ->statut == self ::STATUS_EXCLUDED ) {
2295+ if ($ this ->status == self ::STATUS_EXCLUDED ) {
22952296 dol_syslog (get_class ($ this )."::resiliate statut of member does not allow this " , LOG_WARNING );
22962297 return 0 ;
22972298 }
@@ -2306,6 +2307,7 @@ public function exclude($user)
23062307 $ result = $ this ->db ->query ($ sql );
23072308 if ($ result ) {
23082309 $ this ->statut = self ::STATUS_EXCLUDED ;
2310+ $ this ->status = self ::STATUS_EXCLUDED ;
23092311
23102312 // Call trigger
23112313 $ result = $ this ->call_trigger ('MEMBER_EXCLUDE ' , $ user );
0 commit comments