]> git.koha-community.org Git - koha.git/commit
bugs 3912, 4144: can now add contracts if dataformat is not metric
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 10 Feb 2010 13:31:45 +0000 (08:31 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 10 Feb 2010 13:41:47 +0000 (08:41 -0500)
commit3d19eb7fef079a71d3d92cbb696d8e94fb8e4ee4
tree7eda938bfd652207cfea69b27f998f2f1d12481c
parent89fab00e996282b07980fce0cfee5bbf93f0b604
bugs 3912, 4144: can now add contracts if dataformat is not metric

Fixed bug in date validation that prevented adding new contracts
if the dateformat syspref was set to something other than 'metric'.

In process, also removed three hand-written date validation routines
in favor of using JavaScript Date objects and the Date_from_syspref
function provided in calendar.inc.

This fixes bug 3912, and partially addresses bug 4144.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
admin/aqcontract.pl
koha-tmpl/intranet-tmpl/prog/en/js/acq.js
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tmpl