Adding 'flagged' variable to help control display in the template

This commit is contained in:
oleonard 2005-02-16 22:25:17 +00:00
parent 71342adba7
commit cb2dc1d759
1 changed files with 5 additions and 0 deletions

View File

@ -329,6 +329,7 @@ sub patrontable {
$flags->{$flag}->{'message'}=~s/\n/<br>/g;
if ($flags->{$flag}->{'noissues'}) {
$template->param(
flagged => 1,
noissues => 'true',
);
if ($flag eq 'GNA'){
@ -356,6 +357,7 @@ sub patrontable {
if ($flag eq 'CHARGES') {
$template->param(
charges => 'true',
flagged => 1,
chargesmsg => $flags->{'CHARGES'}->{'message'}
);
}
@ -368,6 +370,7 @@ sub patrontable {
push @itemswaiting, $iteminformation;
}
$template->param(
flagged => 1,
waiting => 'true',
waitingmsg => $flags->{'WAITING'}->{'message'},
itemswaiting => \@itemswaiting,
@ -376,6 +379,7 @@ sub patrontable {
if ($flag eq 'ODUES') {
$template->param(
odues => 'true',
flagged => 1,
oduesmsg => $flags->{'ODUES'}->{'message'}
);
@ -394,6 +398,7 @@ sub patrontable {
if ($flag eq 'NOTES') {
$template->param(
notes => 'true',
flagged => 1,
notesmsg => $flags->{'NOTES'}->{'message'}
);
}