aboutsummaryrefslogtreecommitdiffstats
path: root/web-admin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@cake.ukcod.org.uk>2010-04-20 13:41:48 +0100
committerMatthew Somerville <matthew@cake.ukcod.org.uk>2010-04-20 13:41:48 +0100
commit031843a56c085b2e13d168f41e9d954fc606d7b2 (patch)
tree305e8a3ebab10f3df8830d537f933ef631d874c2 /web-admin
parent5adb298525d9919e6008cf94d79855a99b758578 (diff)
Show updates on hidden reports as hidden.
Diffstat (limited to 'web-admin')
-rwxr-xr-xweb-admin/index.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi
index 4c0b2a154..936054fe5 100755
--- a/web-admin/index.cgi
+++ b/web-admin/index.cgi
@@ -504,7 +504,9 @@ sub admin_reports {
} else {
$counciltext = $council;
}
- print $q->Tr({}, $q->td([ $url, ent($_->{title}), ent($_->{name}), ent($_->{email}),
+ my $attr = {};
+ $attr->{-class} = 'hidden' if $_->{state} eq 'hidden';
+ print $q->Tr($attr, $q->td([ $url, ent($_->{title}), ent($_->{name}), ent($_->{email}),
$counciltext,
$category, $anonymous, $cobrand, $created, $state, $whensent,
$q->a({ -href => NewURL($q, page=>'report_edit', id=>$_->{id}) }, 'Edit')
@@ -662,7 +664,7 @@ sub admin_show_updates {
}
my $cobrand = $_->{cobrand} . '<br>' . $_->{cobrand_data};
my $attr = {};
- $attr->{-class} = 'hidden' if $_->{state} eq 'hidden';
+ $attr->{-class} = 'hidden' if $_->{state} eq 'hidden' || ($_->{problem_state} && $_->{problem_state} eq 'hidden');
print $q->Tr($attr, $q->td([ $url, $_->{state}, ent($_->{name} || ''),
ent($_->{email}), $_->{created}, $cobrand, ent($_->{text}),
$q->a({ -href => NewURL($q, page=>'update_edit', id=>$_->{id}) }, 'Edit')