MT#12707 - malicious_calls: add source field

Change-Id: Ic787b9da31a0ff5363239e0c45ebe82945647b08
changes/51/2651/3
Kirill Solomko 10 years ago
parent e33340a09a
commit 91de0e85dc

@ -27,6 +27,7 @@ sub mcid_list :Chained('/') :PathPart('maliciouscall') :CaptureArgs(0) {
{ name => 'callee', search => 1, title => $c->loc('Callee') },
{ name => 'start_time', search => 1, title => $c->loc('Called at') },
{ name => 'duration', search => 1, title => $c->loc('Duration') },
{ name => 'source', search => 1, title => $c->loc('Source') },
{ name => 'reported_at', search => 1, title => $c->loc('Reported at') },
]);
$c->stash->{mcid_rs} = $mcid_rs;
@ -47,6 +48,7 @@ sub mcid_list :Chained('/') :PathPart('maliciouscall') :CaptureArgs(0) {
{ name => 'callee', search => 1, title => $c->loc('Callee') },
{ name => 'start_time', search => 1, title => $c->loc('Called at') },
{ name => 'duration', search => 1, title => $c->loc('Duration') },
{ name => 'source', search => 1, title => $c->loc('Source') },
{ name => 'reported_at', search => 1, title => $c->loc('Reported at') },
]);
$c->stash->{mcid_rs} = $mcid_rs;

@ -12,7 +12,7 @@ has_field 'reseller' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/reseller call_id caller callee start_time duration reported_at/],
render_list => [qw/reseller call_id caller callee start_time duration source reported_at/],
);
1;

@ -49,6 +49,12 @@ has_field 'duration' => (
required => 1,
);
has_field 'source' => (
type => 'Text',
label => 'Source',
required => 1,
);
has_field 'reported_at' => (
type => 'Text',
label => 'Reported at',
@ -58,7 +64,7 @@ has_field 'reported_at' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/id callee_uuid call_id caller callee start_time duration reported_at/],
render_list => [qw/id callee_uuid call_id caller callee start_time duration source reported_at/],
);
1;

Loading…
Cancel
Save