]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 27 Jun 2024 16:21:39 +0000 (16:21 +0000)
commit6205b4910d48362dee4f0d3e99f802e07e9a82c5
tree8f80a5b6ddb480206314b52f2f2f4b1f79ff5f05
parent7472c619a0ed91cc848ec5cc826ccf55e5c92598
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>
(cherry picked from commit ff42535f96f99d6fbcc27280401cd07bc65e54d2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/ILL/Request.pm
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt