Page MenuHomePhabricator

Boolean fields are always stored as true, except then using $msgForNo
Closed, ResolvedPublic

Description

The documentation states that boolean values can be stored as 1 or 0, or yes or no. actually, Cargo stores all these as 1. You have to use your language's translation of "no" to get a 0 stored.

Event Timeline

Change 273953 had a related patch set uploaded (by Oetterer):
changed CargoStore's handling of boolean values. now accepts 0, no and your wiki locale equivalent of no as false

https://gerrit.wikimedia.org/r/273953

I tried to suggest a patch via gerrit. Since this is my very first use of gerrit, please feel free to reject it, if I did something wrong or out of turn.