Bug 34838: Use ->set to avoid method redefinition warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 16 May 2024 20:13:05 +0000 (17:13 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 11 Jun 2024 12:28:16 +0000 (13:28 +0100)
commitff42535f96f99d6fbcc27280401cd07bc65e54d2
tree7e87e41ec5416b781e0c9e77a8d13e59e576e75a
parent74b906095bfdf136afa39c326b4ede4c2225aff4
Bug 34838: Use ->set to avoid method redefinition warnings

This patch silences more warnings. To test

1. Be on 23.11.x
2. Apply the patches before this one
3. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Illrequests.t
=> FAIL: Lots of warnings like this:
Subroutine Koha::Illrequest::SUPER::status redefined at /kohadevbox/koha/Koha/Object.pm line 955.
Subroutine Koha::Illrequest::SUPER::status_alias redefined at /kohadevbox/koha/Koha/Object.pm line 955.
illrequestattributes is DEPRECATED in favor of extended_attributes at t/db_dependent/Illrequests.t line 1071.
4. Apply this patch
5. Repeat 3
=> SUCCESS: No more warnings!
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/ILL/Request.pm
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt