You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How I can control update event, for replace entered empty or 0 value, to NULL record to database ?
For now if db filed have NULL value, used edit form show '0' in , and if i try update user data, have error of update database;
For search solution I added default value: $struct['x_expire']['default'] = '2999-12-31';
But it fill at all users data 2999-12-31, instead of NULL.
And need write custom script that external connect to database and replace value 2999-12-31 to NULL $CONF['mailbox_postedit_script'] = 'some_shell_script.sh';
How I can update result w/o use external postedit_script?
May be I can have some methods how redefine beforestore() in config.local.php ?
public function store() {
if ($this->values_valid == false) {
$this->errormsg[] = "one or more values are invalid!";
return false;
}
if ( !$this->beforestore() ) {
return false;
The text was updated successfully, but these errors were encountered:
I try extend custom fields by extend struct hook.
Database filed 'x_expire' is NULL by default value and have type: datatime;
How I can control update event, for replace entered empty or 0 value, to NULL record to database ?
For now if db filed have NULL value, used edit form show '0' in , and if i try update user data, have error of update database;
For search solution I added default value:
$struct['x_expire']['default'] = '2999-12-31';
But it fill at all users data 2999-12-31, instead of NULL.
And need write custom script that external connect to database and replace value 2999-12-31 to NULL
$CONF['mailbox_postedit_script'] = 'some_shell_script.sh';
How I can update result w/o use external postedit_script?
May be I can have some methods how redefine
beforestore()
in config.local.php ?The text was updated successfully, but these errors were encountered: