https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33611

Hinemoea Viault <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #150520|0                           |1
        is obsolete|                            |

--- Comment #12 from Hinemoea Viault <[email protected]> ---
Created attachment 150798
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150798&action=edit
Bug 33611: Ensure dt_from_string always returns a new object

This patch alters dt_from_string to pass a cloned object if called
on an existing date time object

This resolves an issue where a holds reserve date was being altered when
the default expiration date was set

To test:
1 - Set DefaultHoldExpiration to Set
2 - Set DefaultHoldExpirationPeriod to 365
3 - Set DefaultHoldExpirationunitOfTimeToDays
4 - Place a hold
5 - Note reserve date is 1 year in the future, same as expiration
6 - Apply patch
7 - Restart all
8 - Place another hold
9 - Note reserve date is set to today

Signed-off-by: David Nind <[email protected]>

Signed-off-by: Jonathan Druart <[email protected]>
Signed-off-by: Hinemoea Viault <[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/

Reply via email to