From 9db48b4d3f869243149cfc4bcbe5017c620aaecd Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Fri, 21 Sep 2018 13:32:25 +0200 Subject: [PATCH] TT#44522 Fix alias_number as Repeatable form validation Change-Id: Ia2aa062dfd775b737107aad4c76aaeebe85bf419 --- .../Panel/Form/Subscriber/SubscriberSubAdminAPI.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/NGCP/Panel/Form/Subscriber/SubscriberSubAdminAPI.pm b/lib/NGCP/Panel/Form/Subscriber/SubscriberSubAdminAPI.pm index 193a5fda59..d8946d60ee 100644 --- a/lib/NGCP/Panel/Form/Subscriber/SubscriberSubAdminAPI.pm +++ b/lib/NGCP/Panel/Form/Subscriber/SubscriberSubAdminAPI.pm @@ -155,13 +155,9 @@ has_field 'display_name' => ( ); has_field 'alias_numbers' => ( - type => '+NGCP::Panel::Field::AliasNumber', - setup_for_js => 1, + type => 'Repeatable', do_wrapper => 1, do_label => 0, - tags => { - controls_div => 1, - }, wrapper_class => [qw/hfh-rep/], element_attr => { rel => ['tooltip'], @@ -169,6 +165,10 @@ has_field 'alias_numbers' => ( }, ); +has_field 'alias_numbers.contains' => ( + type => '+NGCP::Panel::Field::E164', +); + has_field 'is_pbx_pilot' => ( type => 'Boolean', label => 'Is PBX Pilot?',