Page MenuHomePhabricator

Boolean option issue when using sqlite
Closed, ResolvedPublic


When using sqlite and saving a campaign without having it enabled, it will show up as enabled when next editing it or when querying it's info via the API. Not showing as enabled on Special:UploadCampaigns though.

Works just fine on MySQL.

Version: 1.21.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:28 AM
bzimport set Reference to bz37352.

Moving to MediaWiki as this is due to string to boolean conversion in ORMRow, recommend to use simple boolean cast instead

calling setField() with an empty string for a boolean datatype returns true instead of false.