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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 25 Oct 2023 07:37:22 +0000 (21:37 -1000)
commit0231f8d14444a18fd8db2de1f5e5d4365ec2f1b7
treeac8c2d5ab7305a0d208e13df388bee356c53c9cc
parentc3d30dc4e86aecbcbd87a5f5a2a057cdf86eb215
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>
(cherry picked from commit 7d4e5a66bd8ce72a997f7c4285efa84d4ee5c04f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc