[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Blocks||16145 Depends on|16145 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16145 [Bug 16145] Regression: Bug 15632 broke display of library name on circulation messages -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Owen Leonardchanged: What|Removed |Added Depends on||16145 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16145 [Bug 16145] Regression: Bug 15632 broke display of library name on circulation messages -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Blocks||16125 Depends on|16125 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16125 [Bug 16125] Regression: Can't add messages at checkout if no other messages are present -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Owen Leonardchanged: What|Removed |Added Depends on||16125 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16125 [Bug 16125] Regression: Can't add messages at checkout if no other messages are present -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Brendan Gallagherchanged: What|Removed |Added Status|Passed QA |Pushed to Master --- Comment #51 from Brendan Gallagher --- Pushed to Master - Should be in the May 2016 Release. Thanks! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #49 from Jonathan Druart--- Created attachment 48592 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48592=edit Bug 15632 [QA Followup] - Undo changes needed for Bug 13618 which was reverted -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #50 from Jonathan Druart--- Created attachment 48593 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48593=edit Bug 15632 [QA Followup] - Change method type to _type for bug 15446 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Attachment #48425|0 |1 is obsolete|| Attachment #48426|0 |1 is obsolete|| Attachment #48427|0 |1 is obsolete|| --- Comment #48 from Jonathan Druart --- Created attachment 48591 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48591=edit Bug 15632 [QA Followup] - Get rid of use of uninitialized value errors for unit tests * Set $user to "" if not passed * Tidy sub -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Brendan Gallagherchanged: What|Removed |Added CC||bren...@bywatersolutions.co ||m Status|Passed QA |Patch doesn't apply --- Comment #47 from Brendan Gallagher --- Didn't apply cleanly - I know because of the moving target that master is. Please rebase. Once it's done - leave me an @later in #koha and I'll jump right on it. Thank you so much for the time and bother of rebasing. Brendan -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #46 from Jonathan Druart--- Patches rebased. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #45 from Jonathan Druart--- Created attachment 48427 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48427=edit Bug 15632 [QA Followup] - Change method type to _type for bug 15446 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #41 from Jonathan Druart--- Created attachment 48423 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48423=edit Bug 15632: Koha::Patron::Messages - Remove tests The messages related tests in t/db_dependent/Members.t are not deprecated and can be removed. Test plan: git grep AddMessage git grep DeleteMessage git grep GetMessagesCount git grep GetMessages should not return any result. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #42 from Jonathan Druart--- Created attachment 48424 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48424=edit Bug 15632: Koha::Patron::Messages - (follow-up) Remove AddMessage Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #43 from Jonathan Druart--- Created attachment 48425 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48425=edit Bug 15632 [QA Followup] - Get rid of use of uninitialized value errors for unit tests * Set $user to "" if not passed * Tidy sub -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Attachment #48014|0 |1 is obsolete|| Attachment #48015|0 |1 is obsolete|| Attachment #48016|0 |1 is obsolete|| Attachment #48017|0 |1 is obsolete|| Attachment #48018|0 |1 is obsolete|| Attachment #48020|0 |1 is obsolete|| --- Comment #40 from Jonathan Druart --- Created attachment 48422 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48422=edit Bug 15632: Koha::Patron::Messages - Remove GetMessages This subroutine just retrieved the messages given some parameters. Some job should not have been done in this subroutine. It was called only 3 times, in circ/circulation.pl and opac-user.pl. Basically it was used to retrieved the message to displaye for a given patron ($borrowernumber) at the OPAC (B) or Staff (L). For the 3 calls, the 2 parameters $borrowernumber and $type (message_type) were passed, the "%" trick at the beginning of the subroutine was useless. Moreover, the date formatting should be done on the TT side, not in subroutine. The can_delete flag was set if the branchcode given in parameter was the same as the one of the message. This has been delegated to the template. Indeed the can_delete was not valid, since it must depend on the AllowAllMessageDeletion pref. The test is now: IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion'') There is not specific test plan for this patch, the changes have already been tested in previous patches. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #44 from Jonathan Druart--- Created attachment 48426 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48426=edit Bug 15632 [QA Followup] - Undo changes needed for Bug 13618 which was reverted -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Kyle M Hallchanged: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #36 from Kyle M Hall--- Created attachment 48016 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48016=edit Bug 15632: Koha::Patron::Messages - (follow-up) Remove AddMessage Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #35 from Kyle M Hall--- Created attachment 48015 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48015=edit Bug 15632: Koha::Patron::Messages - Remove tests The messages related tests in t/db_dependent/Members.t are not deprecated and can be removed. Test plan: git grep AddMessage git grep DeleteMessage git grep GetMessagesCount git grep GetMessages should not return any result. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #38 from Kyle M Hall--- Created attachment 48018 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48018=edit Bug 15632 [QA Followup] - Undo changes needed for Bug 13618 which was reverted -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #37 from Kyle M Hall--- Created attachment 48017 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48017=edit Bug 15632 [QA Followup] - Get rid of use of uninitialized value errors for unit tests * Set $user to "" if not passed * Tidy sub -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #39 from Kyle M Hall--- Created attachment 48020 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48020=edit Bug 15632 [QA Followup] - Change method type to _type for bug 15446 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Kyle M Hallchanged: What|Removed |Added Depends on||15446 CC||k...@bywatersolutions.com Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15446 [Bug 15446] Koha::Object[s]->type should be renamed to _type to avoid conflict with column name -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Kyle M Hallchanged: What|Removed |Added Attachment #47580|0 |1 is obsolete|| Attachment #47581|0 |1 is obsolete|| Attachment #47582|0 |1 is obsolete|| Attachment #47583|0 |1 is obsolete|| Attachment #47584|0 |1 is obsolete|| Attachment #47585|0 |1 is obsolete|| Attachment #47586|0 |1 is obsolete|| Attachment #47587|0 |1 is obsolete|| --- Comment #28 from Kyle M Hall --- Created attachment 48004 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48004=edit Bug 15632: Koha::Patron::Messages - Add new classes The following 4 CRUD subroutines in C4::Members: - AddMessage - DeleteMessage - GetMessagesCount - GetMessages could be replaced with a new package based on Koha::Objets. This patchset will add the 2 Koha::Patron::Message[s] classes, then use it to replace the different calls to these subroutine. It will slightly reduce the size of C4::Members Signed-off-by: Marc Véron Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Kyle M Hallchanged: What|Removed |Added Attachment #48004|0 |1 is obsolete|| --- Comment #29 from Kyle M Hall --- Created attachment 48009 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48009=edit Bug 15632: Koha::Patron::Messages - Add new classes The following 4 CRUD subroutines in C4::Members: - AddMessage - DeleteMessage - GetMessagesCount - GetMessages could be replaced with a new package based on Koha::Objets. This patchset will add the 2 Koha::Patron::Message[s] classes, then use it to replace the different calls to these subroutine. It will slightly reduce the size of C4::Members Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #31 from Kyle M Hall--- Created attachment 48011 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48011=edit Bug 15632: Koha::Patron::Messages - Remove AddMessage The AddMessage subroutine just 1. checked if all the parameters were passed 2. inserted the message in the DB 3. logged the action if needed These 3 jobs are now done by the overloaded store method of Koha::Patron::Message. Test plan: 1/ Go on the "check out" page of a patron 2/ Add different new messages Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #33 from Kyle M Hall--- Created attachment 48013 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48013=edit Bug 15632: Koha::Patron::Messages - Remove GetMessagesCount The GetMessageCount subroutine was only used once, in opac-user.pl, to know if some messages will be displayed. Test plan: 1/ Create messages to display at the OPAC for a patron 2/ Logged this patron in at the OPAC, you should see the messages displayed. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #30 from Kyle M Hall--- Created attachment 48010 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48010=edit Bug 15632: Koha::Patron::Messages - Be sure add and delete will log If the pref BorrowersLog is on, the store and delete method should log into the action_logs table. Easy to do by overloading them. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #32 from Kyle M Hall--- Created attachment 48012 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48012=edit Bug 15632: Koha::Patron::Messages - Remove DeleteMessage The DeleteMessage just deleted and logged if needed. This is now be done by Koha::Patron::Message->delete. Test plan: 1/ Go on the "check out" page of a patron 2/ Delete some messages Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #34 from Kyle M Hall--- Created attachment 48014 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48014=edit Bug 15632: Koha::Patron::Messages - Remove GetMessages This subroutine just retrieved the messages given some parameters. Some job should not have been done in this subroutine. It was called only 3 times, in circ/circulation.pl and opac-user.pl. Basically it was used to retrieved the message to displaye for a given patron ($borrowernumber) at the OPAC (B) or Staff (L). For the 3 calls, the 2 parameters $borrowernumber and $type (message_type) were passed, the "%" trick at the beginning of the subroutine was useless. Moreover, the date formatting should be done on the TT side, not in subroutine. The can_delete flag was set if the branchcode given in parameter was the same as the one of the message. This has been delegated to the template. Indeed the can_delete was not valid, since it must depend on the AllowAllMessageDeletion pref. The test is now: IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion'') There is not specific test plan for this patch, the changes have already been tested in previous patches. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #17 from Jonathan Druart--- Created attachment 47573 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47573=edit Bug 15632: Koha::Patron::Messages - Remove GetMessages This subroutine just retrieved the messages given some parameters. Some job should not have been done in this subroutine. It was called only 3 times, in circ/circulation.pl and opac-user.pl. Basically it was used to retrieved the message to displaye for a given patron ($borrowernumber) at the OPAC (B) or Staff (L). For the 3 calls, the 2 parameters $borrowernumber and $type (message_type) were passed, the "%" trick at the beginning of the subroutine was useless. Moreover, the date formatting should be done on the TT side, not in subroutine. The can_delete flag was set if the branchcode given in parameter was the same as the one of the message. This has been delegated to the template. Indeed the can_delete was not valid, since it must depend on the AllowAllMessageDeletion pref. The test is now: IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion'') There is not specific test plan for this patch, the changes have already been tested in previous patches. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #18 from Jonathan Druart--- Created attachment 47574 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47574=edit Bug 15632: Koha::Patron::Messages - Remove tests The messages related tests in t/db_dependent/Members.t are not deprecated and can be removed. Test plan: git grep AddMessage git grep DeleteMessage git grep GetMessagesCount git grep GetMessages should not return any result. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #19 from Jonathan Druart--- Created attachment 47575 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47575=edit Bug 15632: Koha::Patron::Messages - (follow-up) Remove AddMessage -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #16 from Jonathan Druart--- Created attachment 47572 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47572=edit Bug 15632: Koha::Patron::Messages - Remove GetMessagesCount The GetMessageCount subroutine was only used once, in opac-user.pl, to know if some messages will be displayed. Test plan: 1/ Create messages to display at the OPAC for a patron 2/ Logged this patron in at the OPAC, you should see the messages displayed. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Attachment #47094|0 |1 is obsolete|| Attachment #47095|0 |1 is obsolete|| Attachment #47515|0 |1 is obsolete|| Attachment #47516|0 |1 is obsolete|| Attachment #47525|0 |1 is obsolete|| --- Comment #15 from Jonathan Druart --- Created attachment 47571 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47571=edit Bug 15632: Koha::Patron::Messages - Remove DeleteMessage The DeleteMessage just deleted and logged if needed. This is now be done by Koha::Patron::Message->delete. Test plan: 1/ Go on the "check out" page of a patron 2/ Delete some messages -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47092|0 |1 is obsolete|| --- Comment #21 from Marc Véron --- Created attachment 47581 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47581=edit Bug 15632: Koha::Patron::Messages - Be sure add and delete will log If the pref BorrowersLog is on, the store and delete method should log into the action_logs table. Easy to do by overloading them. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47573|0 |1 is obsolete|| --- Comment #25 from Marc Véron --- Created attachment 47585 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47585=edit Bug 15632: Koha::Patron::Messages - Remove GetMessages This subroutine just retrieved the messages given some parameters. Some job should not have been done in this subroutine. It was called only 3 times, in circ/circulation.pl and opac-user.pl. Basically it was used to retrieved the message to displaye for a given patron ($borrowernumber) at the OPAC (B) or Staff (L). For the 3 calls, the 2 parameters $borrowernumber and $type (message_type) were passed, the "%" trick at the beginning of the subroutine was useless. Moreover, the date formatting should be done on the TT side, not in subroutine. The can_delete flag was set if the branchcode given in parameter was the same as the one of the message. This has been delegated to the template. Indeed the can_delete was not valid, since it must depend on the AllowAllMessageDeletion pref. The test is now: IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion'') There is not specific test plan for this patch, the changes have already been tested in previous patches. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47574|0 |1 is obsolete|| --- Comment #26 from Marc Véron --- Created attachment 47586 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47586=edit Bug 15632: Koha::Patron::Messages - Remove tests The messages related tests in t/db_dependent/Members.t are not deprecated and can be removed. Test plan: git grep AddMessage git grep DeleteMessage git grep GetMessagesCount git grep GetMessages should not return any result. Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47572|0 |1 is obsolete|| --- Comment #24 from Marc Véron --- Created attachment 47584 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47584=edit Bug 15632: Koha::Patron::Messages - Remove GetMessagesCount The GetMessageCount subroutine was only used once, in opac-user.pl, to know if some messages will be displayed. Test plan: 1/ Create messages to display at the OPAC for a patron 2/ Logged this patron in at the OPAC, you should see the messages displayed. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47571|0 |1 is obsolete|| --- Comment #23 from Marc Véron --- Created attachment 47583 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47583=edit Bug 15632: Koha::Patron::Messages - Remove DeleteMessage The DeleteMessage just deleted and logged if needed. This is now be done by Koha::Patron::Message->delete. Test plan: 1/ Go on the "check out" page of a patron 2/ Delete some messages Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47091|0 |1 is obsolete|| --- Comment #20 from Marc Véron --- Created attachment 47580 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47580=edit Bug 15632: Koha::Patron::Messages - Add new classes The following 4 CRUD subroutines in C4::Members: - AddMessage - DeleteMessage - GetMessagesCount - GetMessages could be replaced with a new package based on Koha::Objets. This patchset will add the 2 Koha::Patron::Message[s] classes, then use it to replace the different calls to these subroutine. It will slightly reduce the size of C4::Members Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47093|0 |1 is obsolete|| --- Comment #22 from Marc Véron --- Created attachment 47582 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47582=edit Bug 15632: Koha::Patron::Messages - Remove AddMessage The AddMessage subroutine just 1. checked if all the parameters were passed 2. inserted the message in the DB 3. logged the action if needed These 3 jobs are now done by the overloaded store method of Koha::Patron::Message. Test plan: 1/ Go on the "check out" page of a patron 2/ Add different new messages Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Attachment #47575|0 |1 is obsolete|| --- Comment #27 from Marc Véron --- Created attachment 47587 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47587=edit Bug 15632: Koha::Patron::Messages - (follow-up) Remove AddMessage Signed-off-by: Marc Véron -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added Patch complexity|--- |Medium patch Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Marc Véronchanged: What|Removed |Added CC||ve...@veron.ch --- Comment #14 from Marc Véron --- I get an error in circ/del_message.pl line 26: Can't locate Koha/Patrons/Messages.pm in @INC (@INC contains: /usr/share/kohaclone /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/kohaclone/circ/del_message.pl line 26. BEGIN failed--compilation aborted at /usr/share/kohaclone/circ/del_message.pl line 26. The line should read use Koha::Patron::Messages; ( instead of use Koha::Patrons::Messages; ) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Attachment #47096|0 |1 is obsolete|| Attachment #47097|0 |1 is obsolete|| --- Comment #9 from Jonathan Druart --- Created attachment 47515 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47515=edit Bug 15632: Koha::Patron::Messages - Remove GetMessages This subroutine just retrieved the messages given some parameters. Some job should not have been done in this subroutine. It was called only 3 times, in circ/circulation.pl and opac-user.pl. Basically it was used to retrieved the message to displaye for a given patron ($borrowernumber) at the OPAC (B) or Staff (L). For the 3 calls, the 2 parameters $borrowernumber and $type (message_type) were passed, the "%" trick at the beginning of the subroutine was useless. Moreover, the date formatting should be done on the TT side, not in subroutine. The can_delete flag was set if the branchcode given in parameter was the same as the one of the message. This has been delegated to the template. Indeed the can_delete was not valid, since it must depend on the AllowAllMessageDeletion pref. The test is now: IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion'') There is not specific test plan for this patch, the changes have already been tested in previous patches. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #12 from Jonathan Druart--- Created attachment 47525 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47525=edit Bug 15632: Koha::Patron::Messages - (follow-up) Remove AddMessage -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #10 from Jonathan Druart--- Created attachment 47516 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47516=edit Bug 15632: Koha::Patron::Messages - Remove tests The messages related tests in t/db_dependent/Members.t are not deprecated and can be removed. Test plan: git grep AddMessage git grep DeleteMessage git grep GetMessagesCount git grep GetMessages should not return any result. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Owen Leonardchanged: What|Removed |Added Status|Needs Signoff |Patch doesn't apply --- Comment #8 from Owen Leonard --- I suspect Bug 13618 has caused a conflict with these patches now. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Owen Leonardchanged: What|Removed |Added Status|Needs Signoff |Failed QA --- Comment #11 from Owen Leonard --- This is not working for me. When I try to add a message on the circulation page it does not get saved. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #13 from Jonathan Druart--- (In reply to Owen Leonard from comment #11) > This is not working for me. When I try to add a message on the circulation > page it does not get saved. Hum, indeed. Sorry about that. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #1 from Jonathan Druart--- Created attachment 47091 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47091=edit Bug 15632: Koha::Patron::Messages - Add new classes The following 4 CRUD subroutines in C4::Members: - AddMessage - DeleteMessage - GetMessagesCount - GetMessages could be replaced with a new package based on Koha::Objets. This patchset will add the 2 Koha::Patron::Message[s] classes, then use it to replace the different calls to these subroutine. It will slightly reduce the size of C4::Members -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #3 from Jonathan Druart--- Created attachment 47093 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47093=edit Bug 15632: Koha::Patron::Messages - Remove AddMessage The AddMessage subroutine just 1. checked if all the parameters were passed 2. inserted the message in the DB 3. logged the action if needed These 3 jobs are now done by the overloaded store method of Koha::Patron::Message. Test plan: 1/ Go on the "check out" page of a patron 2/ Add different new messages -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #6 from Jonathan Druart--- Created attachment 47096 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47096=edit Bug 15632: Koha::Patron::Messages - Remove GetMessages This subroutine just retrieved the messages given some parameters. Some job should not have been done in this subroutine. It was called only 3 times, in circ/circulation.pl and opac-user.pl. Basically it was used to retrieved the message to displaye for a given patron ($borrowernumber) at the OPAC (B) or Staff (L). For the 3 calls, the 2 parameters $borrowernumber and $type (message_type) were passed, the "%" trick at the beginning of the subroutine was useless. Moreover, the date formatting should be done on the TT side, not in subroutine. The can_delete flag was set if the branchcode given in parameter was the same as the one of the message. This has been delegated to the template. Indeed the can_delete was not valid, since it must depend on the AllowAllMessageDeletion pref. The test is now: IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion'') There is not specific test plan for this patch, the changes have already been tested in previous patches. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #4 from Jonathan Druart--- Created attachment 47094 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47094=edit Bug 15632: Koha::Patron::Messages - Remove DeleteMessage The DeleteMessage just deleted and logged if needed. This is now be done by Koha::Patron::Message->delete. Test plan: 1/ Go on the "check out" page of a patron 2/ Delete some messages -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #5 from Jonathan Druart--- Created attachment 47095 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47095=edit Bug 15632: Koha::Patron::Messages - Remove GetMessagesCount The GetMessageCount subroutine was only used once, in opac-user.pl, to know if some messages will be displayed. Test plan: 1/ Create messages to display at the OPAC for a patron 2/ Logged this patron in at the OPAC, you should see the messages displayed. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #7 from Jonathan Druart--- Created attachment 47097 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47097=edit Bug 15632: Koha::Patron::Messages - Remove tests The messages related tests in t/db_dependent/Members.t are not deprecated and can be removed. Test plan: git grep AddMessage git grep DeleteMessage git grep GetMessagesCount git grep GetMessages should not return any result. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 --- Comment #2 from Jonathan Druart--- Created attachment 47092 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47092=edit Bug 15632: Koha::Patron::Messages - Be sure add and delete will log If the pref BorrowersLog is on, the store and delete method should log into the action_logs table. Easy to do by overloading them. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 15632] Move the messages related code to Koha::Patron::Messages
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15632 Jonathan Druartchanged: What|Removed |Added See Also||http://bugs.koha-community. ||org/bugzilla3/show_bug.cgi? ||id=15548 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/