From 84b4d12e53758e922a5a7c882b9006a1d64c8a1d Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 9 Jun 2009 16:33:01 +0000 Subject: [PATCH] smarter boolean value test for display strings git-svn-id: svn://svn.open-ils.org/ILS/trunk@13349 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 8437ee77fd..030288424a 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -83,7 +83,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { var value = this.widgetValue; switch(this.idlField.datatype) { case 'bool': - return (value) ? 'True' : 'False'; // XXX i18n! + return (openils.Util.isTrue(value)) ? 'True' : 'False'; // XXX i18n! case 'timestamp': dojo.require('dojo.date.locale'); dojo.require('dojo.date.stamp'); -- 2.11.0