]> git.koha-community.org Git - koha.git/commit
Bug 12627: Fix default values
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 30 Sep 2014 10:19:21 +0000 (12:19 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Nov 2014 18:17:10 +0000 (15:17 -0300)
commita71b96295fb07084e4f87ac1a471e89355f3c5a4
treee249e14ea067ba21faabb74e818f25f91840c318
parentd536bb46f72b3c2479c5fa6fae242e3531fdae7b
Bug 12627: Fix default values

The default value for *by and *date fields is NULL.
But without this patch, the values are 0 or 0000-00-00.
It comes from the fact that the form set to an empty string the values
and DBIX::Class does not consider them as undefined.

This patch is very ugly, not sure how we can fix that.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
No regressions found, adding and editing suggestions from
OPAC and staff.
Passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Suggestions.pm
suggestion/suggestion.pl
t/db_dependent/Suggestions.t