Coerce values to string in the switch for Boolean columns in the main
egGridValueFilter function. This came about after an IRC conversation
with Mike Rylander who suggested this as a possible fix. It should
when field values are strings, integers, or Booleans.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
var GVF = function(value, column, item) {
switch(column.datatype) {
case 'bool':
- switch(value) {
- // Browser will translate true/false for us
+ switch(''+value) {
case 't' :
case '1' : // legacy
- case true:
+ case 'true':
return egStrings.YES;
case 'f' :
case '0' : // legacy
- case false:
+ case 'false':
return egStrings.NO;
// value may be null, '', etc.
default : return '';