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 <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
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();
}
}