From d012c91ef7693f94e4bc836ad408f5bf6e5bf32a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 3 Aug 2017 11:35:31 -0400 Subject: [PATCH] LP#1705524 Closed dates editor handles no timezones Fix issue in closed dates editor where it failed creating new closed dates when an org unit had no value applied for the lib.timezone org unit setting. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/xul/staff_client/server/admin/closed_dates.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/admin/closed_dates.js b/Open-ILS/xul/staff_client/server/admin/closed_dates.js index c9815d007d..94e94e7d61 100644 --- a/Open-ILS/xul/staff_client/server/admin/closed_dates.js +++ b/Open-ILS/xul/staff_client/server/admin/closed_dates.js @@ -203,7 +203,11 @@ function cdGetTZ(org, callback) { var data = r.recv().content(); if(e = openils.Event.parse(data)) return alert(e); - orgTZ[org] = data['lib.timezone'].value || OpenSRF.tz; + if (data['lib.timezone'] && data['lib.timezone'].value) { + orgTZ[org] = data['lib.timezone'].value; + } else { + orgTZ[org] = OpenSRF.tz; + } if (callback) callback(); } } -- 2.11.0