diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 826b1a79..7948bba1 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1761,7 +1761,7 @@ class BaseProprietaire(BaseClasseCrans): else: nouveau = 1 - if 'chbre' in self.modifs and '????' in [ self._init_data.get("chbre", [''])[0] , self._init_data.get("chbre", [''])[1] ]: + if 'chbre' in self.modifs and '????' in self._init_data.get("chbre", [''])[:2]: self.services_to_restart('bl_chbre_invalide') if ('chbre' in self.modifs or 'paiement' in self.modifs) and self._data['chbre'][0] not in ("????", "EXT"):