[open-ils-commits] [GIT] Evergreen ILS branch master updated. 004198c8d60efe2bb1bae8a6cd11d0c574cfb580
Evergreen Git
git at git.evergreen-ils.org
Tue Mar 20 12:38:49 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 004198c8d60efe2bb1bae8a6cd11d0c574cfb580 (commit)
from 45be2fa7b6df7ef2708ff55376fc074f7609e99f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 004198c8d60efe2bb1bae8a6cd11d0c574cfb580
Author: Jason Etheridge <jason at esilibrary.com>
Date: Fri Feb 24 14:36:16 2012 -0500
lp928937, null date sorting
Changes util.date.db_date2Date so that nulls are not converted into the epoch.
This fixes date sorting in XUL-based lists in the staff client such that unset
dates are listed before actual dates.
Signed-off-by: Jason Etheridge <jason at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/xul/staff_client/chrome/content/util/date.js b/Open-ILS/xul/staff_client/chrome/content/util/date.js
index 4ee8918..cf17627 100644
--- a/Open-ILS/xul/staff_client/chrome/content/util/date.js
+++ b/Open-ILS/xul/staff_client/chrome/content/util/date.js
@@ -46,6 +46,7 @@ util.date.timer_elapsed = function (id) {
}
util.date.db_date2Date = function (db_date) {
+ if (!db_date) { return db_date; }
if (typeof window.dojo != 'undefined') {
dojo.require('dojo.date.stamp');
return dojo.date.stamp.fromISOString( db_date.replace( /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[\+-]\d{2})(\d{2})$/, '$1:$2') );
-----------------------------------------------------------------------
Summary of changes:
.../xul/staff_client/chrome/content/util/date.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list