From bdb11abeba580fb8636ecd05d6d70c3db56933e1 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 19 Feb 2013 15:17:38 +0100 Subject: [PATCH] bweb: Fix #1914 about broken link in Client - Current Jobs --- gui/bweb/lang/en/tpl/client_list.tpl | 2 +- gui/bweb/lang/es/tpl/client_list.tpl | 6 +++--- gui/bweb/lang/fr/tpl/client_list.tpl | 2 +- gui/bweb/lib/Bweb.pm | 7 +++++++ gui/bweb/tpl/client_list.tpl | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) 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 @@
- + -- 2.39.5