Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
What if the DataWriter is called in another context?For instance, let's say we'd like to add a boolean field to xf_forum and have it editable by the admin in the Forum Options.Now, if the field is set to false, it wouldn't be set in $_POST, and every time the forum DataWriter is saved, the custom field would be set to false if $_POST['custom_field'] is not set.This is a problem because the forum DataWriter is not used exclusively when editing forums, but in some other cases (e.g. when rebuilding forums).@[USER=3]Mike[/USER] can you please address this?
What if the DataWriter is called in another context?
For instance, let's say we'd like to add a boolean field to xf_forum and have it editable by the admin in the Forum Options.
Now, if the field is set to false, it wouldn't be set in $_POST, and every time the forum DataWriter is saved, the custom field would be set to false if $_POST['custom_field'] is not set.
This is a problem because the forum DataWriter is not used exclusively when editing forums, but in some other cases (e.g. when rebuilding forums).
@[USER=3]Mike[/USER] can you please address this?
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences