https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34435
Sam Lau <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #153999|0 |1 is obsolete| | --- Comment #4 from Sam Lau <[email protected]> --- Created attachment 154101 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154101&action=edit Bug 34435: Remove side effect from get_password_expiry_date If get_password_expiry_date is passed a DateTime object as a parameter, it modifies and returns the original object. This can create possible side effects. This patch modifies get_password_expiry_date to clone the DateTime object that it receives as a parameter and return the modified clone, so that object references can be passed in safely. To test: prove t/db_dependent/Koha/Patron/Category.t Signed-off-by: Sam Lau <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://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/
