]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 23 May 2016 17:37:48 +0000 (17:37 +0000)
commitb5acde6513eeb9805a3f34a3dc6102038b3cf4cc
tree35ad72eb822d0507e31580ddee2750663d3c016e
parent59c0d44792b0ce4f88c028be97a32a62fb4a8b36
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>
C4/NewsChannels.pm
tools/koha-news.pl