Replace EXPR.
Prevents log error: EXPR:at pos 14: non-initialized variable notforloantext Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
38bf3b1e18
commit
757f42d94b
2 changed files with 4 additions and 1 deletions
|
@ -94,6 +94,9 @@ foreach my $item (@items){
|
|||
$item->{'datelastseen'} = format_date($item->{'datelastseen'});
|
||||
$item->{'ordernumber'} = $ordernum;
|
||||
$item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'};
|
||||
if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) {
|
||||
$item->{status_advisory} = 1;
|
||||
}
|
||||
|
||||
if (C4::Context->preference("IndependantBranches")) {
|
||||
#verifying rights
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<!-- TMPL_IF NAME="copyvol" --><li><span class="label">Copy / Vol :</span> <!-- TMPL_VAR NAME="copyvol" --> </li> <!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="replacementprice" --><li><span class="label">Replacement Price:</span> <!-- TMPL_VAR NAME="replacementprice" --> </li> <!-- /TMPL_IF -->
|
||||
</ol></div>
|
||||
<div class="listgroup"><h4>Statuses <!-- TMPL_IF EXPR="notforloantext || itemlost || damaged || wthdrawn" -->(
|
||||
<div class="listgroup"><h4>Statuses <!-- TMPL_IF NAME="status_advisory" -->(
|
||||
<!-- TMPL_IF name="notforloantext" --><!-- TMPL_VAR name="notforloantext" --> <!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="itemlost"-->Lost<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="damaged" -->Damaged<!-- /TMPL_IF -->
|
||||
|
|
Loading…
Reference in a new issue