Bug 34462: Display the patron's expiration date
authoremilyrose <emily-rose.francoeur@inLibro.com>
Thu, 28 Sep 2023 14:10:26 +0000 (10:10 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 18 Oct 2023 18:41:22 +0000 (15:41 -0300)
commit7d4e5a66bd8ce72a997f7c4285efa84d4ee5c04f
treeffc4e24b95d78a836dacf827df5f65f529efaf4d
parent1c03352ae57a3c8f6f77d64a026a5d87d6f6830e
Bug 34462: Display the patron's expiration date

The problem is in the patron_messages.inc file on line 25. The variable "expiry" is used, but it should be "patron.dateexpiry" because the patron's card isn't expired yet.

TEST PLAN
1) Go to “Patrons > + New patron”
2) Create a patron with an expiry date that is less than 30 days in the future
3) Go to the "details" tab of this account
4) Notice that the date is missing after "expires on":
"Expiration: Patron's card will expire soon. Patron's card expires on Renew or Edit details"
5) Apply the patch
6) Reload the page; the expiry date should now be displayed

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc