]> git.koha-community.org Git - koha.git/commit
Bug 16550: Can't set opac news expiration date to NULL, it reverts to today
authorMarc Véron <veron@veron.ch>
Fri, 20 May 2016 10:19:36 +0000 (12:19 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 25 May 2016 09:27:22 +0000 (11:27 +0200)
commitdac9b06b185de5737eee75d64ae88c1302da90e5
tree9de994f0572737148304a39cccb90969427605d8
parent98a39cee301ee0bc6a2b9c7cb4eeb30a443b4141
Bug 16550: Can't set opac news expiration date to NULL, it reverts to today

This patch fixes an issue with the expiration dates for news always reverting to today if empty.

To test:
- Apply patch
- Go to Home > Tools > News
- Create a news item, do not set expiration date
- Verify that expiration date stays empty
- Edit this news item
- Do not set expiration date
- Verify that expiration date stays empty
- Do the same with expiration dates
- Verify that they are saved properly

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b5acde6513eeb9805a3f34a3dc6102038b3cf4cc)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/NewsChannels.pm
tools/koha-news.pl