From: Eric Bollengier Date: Tue, 19 Feb 2013 14:17:38 +0000 (+0100) Subject: bweb: Fix #1914 about broken link in Client - Current Jobs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bdb11abeba580fb8636ecd05d6d70c3db56933e1;p=bacula%2Fbacula bweb: Fix #1914 about broken link in Client - Current Jobs --- diff --git a/gui/bweb/lang/en/tpl/client_list.tpl b/gui/bweb/lang/en/tpl/client_list.tpl index 7eaf58b122..7a9afc8601 100644 --- a/gui/bweb/lang/en/tpl/client_list.tpl +++ b/gui/bweb/lang/en/tpl/client_list.tpl @@ -11,7 +11,7 @@
- + diff --git a/gui/bweb/lang/es/tpl/client_list.tpl b/gui/bweb/lang/es/tpl/client_list.tpl index 0459f5c489..ae5cceb19b 100644 --- a/gui/bweb/lang/es/tpl/client_list.tpl +++ b/gui/bweb/lang/es/tpl/client_list.tpl @@ -10,11 +10,11 @@
- - + + - +
diff --git a/gui/bweb/lang/fr/tpl/client_list.tpl b/gui/bweb/lang/fr/tpl/client_list.tpl index 6c13e52b2b..e6795ff48c 100644 --- a/gui/bweb/lang/fr/tpl/client_list.tpl +++ b/gui/bweb/lang/fr/tpl/client_list.tpl @@ -11,7 +11,7 @@
- + diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 5b6a189f76..52abe32c4c 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -4170,6 +4170,12 @@ sub display_running_jobs my ($self, $display_action) = @_; return if $self->cant_do('r_view_running_job'); + my $arg = $self->get_form('client'); + my $client = ""; + if ($arg->{client}) { + $client = " AND Client.Name = \'$arg->{client}\' "; + } + # get security filter my $filter = $self->get_client_filter(); @@ -4186,6 +4192,7 @@ SELECT Job.JobId AS jobid, FROM Job INNER JOIN Client USING (ClientId) $filter WHERE JobStatus IN ('C','R','B','e','D','F','S','m','M','s','j','c','d','t','p') + $client "; my $all = $self->dbh_selectall_hashref($query, 'jobid') ; diff --git a/gui/bweb/tpl/client_list.tpl b/gui/bweb/tpl/client_list.tpl index 5aee981cee..647abc601d 100644 --- a/gui/bweb/tpl/client_list.tpl +++ b/gui/bweb/tpl/client_list.tpl @@ -11,7 +11,7 @@
- +