diff --git a/ChangeLog b/ChangeLog index 3e60e74a5..dc4887a6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-08-02 Wolfgang Sourdeau + + * SoObjects/SOGo/NSNumber+Utilities.m (-jsonRepresentation): + returns "true" or "false" when the initial return value is "YES" + or "NO". + 2010-07-30 Francis Lachapelle * UI/WebServerResources/SchedulerUI.js (deleteEvent): improved diff --git a/SoObjects/SOGo/NSNumber+Utilities.m b/SoObjects/SOGo/NSNumber+Utilities.m index c71929e0f..1fac51667 100644 --- a/SoObjects/SOGo/NSNumber+Utilities.m +++ b/SoObjects/SOGo/NSNumber+Utilities.m @@ -28,8 +28,15 @@ - (NSString *) jsonRepresentation { + NSString *jsonRepresentation; - return [NSString stringWithFormat: @"%@", self]; + jsonRepresentation = [NSString stringWithFormat: @"%@", self]; + if ([jsonRepresentation isEqualToString: @"YES"]) + jsonRepresentation = @"true"; + else if ([jsonRepresentation isEqualToString: @"NO"]) + jsonRepresentation = @"false"; + + return jsonRepresentation; } @end