From 0fa58ee349f9048293aa28f6e2a9a25fa4956992 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 13 Nov 2008 20:19:25 +0000 Subject: [PATCH] doh! logic reversal in cstore git-svn-id: svn://svn.open-ils.org/ILS/trunk@11171 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_cstore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index a4b5321b97..f7f05d5854 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -1955,7 +1955,7 @@ static char* SELECT ( if ( !jsonBoolIsTrue( jsonObjectGetKey( selfield, "aggregate" ) ) || - ((int)jsonObjectGetNumber(jsonObjectGetKey( selfield, "aggregate" ))) == 1 // support 1/0 for perl's sake + ((int)jsonObjectGetNumber(jsonObjectGetKey( selfield, "aggregate" ))) == 0 // support 1/0 for perl's sake ) { if (gfirst) { gfirst = 0; @@ -2326,7 +2326,7 @@ static char* buildSELECT ( jsonObject* search_hash, jsonObject* order_hash, osrf char* i18n = osrfHashGet(field, "i18n"); if ( !jsonBoolIsTrue( jsonObjectGetKey( order_hash, "no_i18n" ) ) || - ((int)jsonObjectGetNumber(jsonObjectGetKey( order_hash, "no_i18n" ))) == 1 // support 1/0 for perl's sake + ((int)jsonObjectGetNumber(jsonObjectGetKey( order_hash, "no_i18n" ))) == 0 // support 1/0 for perl's sake ) i18n = NULL; if ( i18n && !strncasecmp("true", i18n, 4)) { -- 2.11.0