From 13451324404f6b09b2fc874be719e30bd00a75ff Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Nov 2013 12:23:23 +0100 Subject: [PATCH] Bug 9673: QA followup This followup fixes the wthdrawn typo exist in updatedatabase.pl and does not display the lostitem date if the lostitem value is not set (!= ""). Signed-off-by: Jonathan Druart --- installer/data/mysql/updatedatabase.pl | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index f1d1919..1f2729c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -7746,9 +7746,9 @@ if(CheckVersion($DBversion)) { $DBversion = "3.13.00.XXX"; if ( CheckVersion($DBversion) ) { $dbh->do("ALTER TABLE items ADD itemlost_on DATETIME NULL AFTER itemlost"); - $dbh->do("ALTER TABLE items ADD withdrawn_on DATETIME NULL AFTER wthdrawn"); + $dbh->do("ALTER TABLE items ADD withdrawn_on DATETIME NULL AFTER withdrawn"); $dbh->do("ALTER TABLE deleteditems ADD itemlost_on DATETIME NULL AFTER itemlost"); - $dbh->do("ALTER TABLE deleteditems ADD withdrawn_on DATETIME NULL AFTER wthdrawn"); + $dbh->do("ALTER TABLE deleteditems ADD withdrawn_on DATETIME NULL AFTER withdrawn"); print "Upgrade to $DBversion done (Bug 9673 - Track when items are marked as lost or withdrawn)\n"; SetVersion ($DBversion); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index d54513d..86d4e34 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -127,7 +127,9 @@   [% END %] - [% IF ITEM_DAT.itemlost_on %]
  • Lost on:[% ITEM_DAT.itemlost_on | $KohaDates %]  
  • [% END %] + [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %] +
  • Lost on:[% ITEM_DAT.itemlost_on | $KohaDates %]  
  • + [% END %] [% END %] [% IF ( ITEM_DAT.itemdamagedloop ) %]
  • Damaged status: -- 1.7.10.4