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:
parent
6f61b4488e
commit
8ae1328e71
|
@ -348,7 +348,7 @@ class OpenidsettingsAction extends SettingsAction
|
||||||
$orig = clone($prefs);
|
$orig = clone($prefs);
|
||||||
}
|
}
|
||||||
|
|
||||||
$prefs->hide_profile_link = $this->boolean('hide_profile_link');
|
$prefs->hide_profile_link = $this->booleanintstring('hide_profile_link');
|
||||||
|
|
||||||
if (empty($orig)) {
|
if (empty($orig)) {
|
||||||
$prefs->insert();
|
$prefs->insert();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user