diff --git a/lib/admin/Controller/domain.pm b/lib/admin/Controller/domain.pm index 58e9e46..fb30c78 100644 --- a/lib/admin/Controller/domain.pm +++ b/lib/admin/Controller/domain.pm @@ -287,12 +287,14 @@ sub create_rewrite : Local { unless(keys %messages) { if($c->model('Provisioning')->call_prov( $c, 'voip', 'create_domain_rewrite', { domain => $domain, - direction => $direction, - field => $field, - match_pattern => $match_pattern, - replace_pattern => $replace_pattern, - description => $description, - priority => $priority, + data => { + direction => $direction, + field => $field, + match_pattern => $match_pattern, + replace_pattern => $replace_pattern, + description => $description, + priority => $priority, + }, }, undef )) @@ -344,13 +346,15 @@ sub edit_rewrite : Local { unless(keys %messages) { if($c->model('Provisioning')->call_prov( $c, 'voip', 'update_domain_rewrite', - { id => $rewriteid, - match_pattern => $match_pattern, - replace_pattern => $replace_pattern, - description => $description, - direction => $direction, - field => $field, - priority => $priority, + { id => $rewriteid, + data => { + match_pattern => $match_pattern, + replace_pattern => $replace_pattern, + description => $description, + direction => $direction, + field => $field, + priority => $priority, + }, }, undef )) diff --git a/root/tt/domain_detail.tt b/root/tt/domain_detail.tt index 7d06898..cca2cd5 100644 --- a/root/tt/domain_detail.tt +++ b/root/tt/domain_detail.tt @@ -1,5 +1,5 @@

Domain - [% domain.domain %] + [% domain.domain.domain %]

back @@ -28,7 +28,7 @@
- +
- cancel + cancel [% ELSE %] [% rule.match_pattern %] [% rule.replace_pattern %] @@ -61,11 +61,11 @@ [% rule.description %] [% UNLESS Catalyst.session.admin.read_only %] - edit + edit [% END %]
- + @@ -87,7 +87,7 @@ - + @@ -140,7 +140,7 @@ - +
- cancel + cancel [% ELSE %] [% rule.match_pattern %] [% rule.replace_pattern %] @@ -173,11 +173,11 @@ [% rule.description %] [% UNLESS Catalyst.session.admin.read_only %] - edit + edit [% END %]
- + @@ -199,7 +199,7 @@ - + @@ -252,7 +252,7 @@ - +
- cancel + cancel [% ELSE %] [% rule.match_pattern %] [% rule.replace_pattern %] @@ -285,11 +285,11 @@ [% rule.description %] [% UNLESS Catalyst.session.admin.read_only %] - edit + edit [% END %]
- + @@ -311,7 +311,7 @@ - + @@ -376,7 +376,7 @@ title="audio file in wave format" /> - +
- cancel + cancel [% IF aerefill && prov_error %]
[% prov_error %]
[% END %] [% ELSE %] [% audio.handle %] [% audio.description %] - listen + listen [% UNLESS Catalyst.session.admin.read_only %] - edit + edit [% END %]
- + [% UNLESS Catalyst.session.admin.read_only %]