Revert "Implement handling of empty temp_num_prefix"
This reverts commit f10fa3e169.
This commit is contained in:
parent
5228294c27
commit
d8bc4c5577
1 changed files with 1 additions and 4 deletions
|
|
@ -27,8 +27,6 @@ class Dect:
|
|||
return next(self.fp.extensions.extensions_by_type("temp")).num
|
||||
|
||||
def load_temp_extensions(self):
|
||||
if self.temp_num_prefix is None:
|
||||
return
|
||||
used_temp_extensions = self.c.find_users(lambda u: u.num.startswith(self.temp_num_prefix))
|
||||
for u in used_temp_extensions:
|
||||
temp_num = u.num
|
||||
|
|
@ -84,8 +82,7 @@ class Dect:
|
|||
# user in OMM, but no DECT extension in configuration
|
||||
if not e:
|
||||
# the user might have a temporary extension assigned, collect it
|
||||
temp_extension = self.temp_num_prefix
|
||||
if temp_extension is not None and user.num.startswith(temp_extension):
|
||||
if user.num.startswith(next(self.fp.extensions.extensions_by_type("temp")).num):
|
||||
users_by_ext[user.num] = user
|
||||
users_by_uid[user.uid] = user
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue