DB_DataObject won't save value 0 because it is "false"

A bug which we fix here and there by sending the string '0' instead.
We will be able to remove these hacks ("booleanintstring") when the
next release of DB_DataObject comes as I patched it for them.
This commit is contained in:
Mikael Nordfeldth 2015-03-08 23:32:56 +01:00
parent 6f61b4488e
commit 8ae1328e71
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ class OpenidsettingsAction extends SettingsAction
$orig = clone($prefs);
}
$prefs->hide_profile_link = $this->boolean('hide_profile_link');
$prefs->hide_profile_link = $this->booleanintstring('hide_profile_link');
if (empty($orig)) {
$prefs->insert();