Postcodes can be alphanumeric in certain countries.
Avoid fault when editing a contact without reseller
(e.g. reseller/peer contact). You still can't save it without
setting a reseller (which might not be what we want).
Now also handle alias numbers with the outsourced subroutine
update_subscriber_numbers.
Plus remove some leftovers which are already handled by
this sub.
Cherry-picked from master
Conflicts:
lib/NGCP/Panel/Controller/Subscriber.pm
lib/NGCP/Panel/Utils/Subscriber.pm
Actually use update_subscriber_numbers when updating a subscriber
and not only when creating one. Also handle all neccessary side effects.
Now we can switch our primary number to a number which has been
inactive (that is: did not belong to a subscriber) without an update error.
Cherry-picked from master
Conflicts:
lib/NGCP/Panel/Controller/Subscriber.pm
Outsource the handling of the primary number from
the subscriber controller to a util sub called
update_subscriber_numbers.
It also takes care to reuse a number that has
subscriber_id set to NULL which caused the original
problem in the ticket.
Cherry-picked from master
Conflicts:
lib/NGCP/Panel/Utils/Subscriber.pm
Addressing:
| 17:43:21 /var/lib/dpkg/info/ngcp-panel.postinst: 19: /var/lib/dpkg/info/ngcp-panel.postinst: a2enmod: not found
| 17:43:21 dpkg: error processing ngcp-panel (--configure):
| 17:43:21 subprocess installed post-installation script returned error exit status 127
-- https://jenkins.mgm.sipwise.com/view/piuparts/job/ngcp-panel-piuparts/323/console
We use a2enmod in the postinst maintainer script, therefore
depending on the apache2 package.
The preferences rewrite_rule_sets, ncos_levels, and sound_sets
on a domain should be restricted to ones, that have the same reseller
as the domain itself.
In addition we have to make sure, the preference view does not die,
if an invalid preference had already been selected, for example when
the respective *set/*level had been deleted or had been one, with a wrong
reseller, because of this bug, we just fixed.
Mantis: 4127
and provide a Modal showing the Detail of each.
Except the case when thedestination_set.name is called "quickset_*" and
it only has one entry.
In that case show the particular destinations of this destination set,
in order to not confuse a user who just configured a trivial cf via the simple view.
under Subscriber Preferences -> Call Forwards
Mantis: 3803, 3801