When the reseller has a wrong contract assigned to
him, this contract is not shown because it has already
been filtered out in the Contract controller. In favor
of usability now show it anyway.
Also only present correct contracts on edit/create
resellers in the first place.
See (Mantis:3855#c25797)
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.