- Issue created by @littlepixiez
When creating Terms and Conditions for the first time, if the text format on the "Terms & Conditions" has not yet been selected, it defaults to empty, due to the code:
'#format' => isset($conditions['format']) ? $conditions['format'] : filter_default_format(),
Format is empty, and it just renders as empty.
1. Go to create Terms & Conditions for the first time admin/config/people/legal
2. Fill in the textbox for Terms & Conditions (required) and leave the Text format (required) on "- Select -"
3. Submit the form
4. Get an error (Cannot load the "filter_format" entity with NULL ID.)
Check if the filter format is empty rather than set.
Fix the code.
None - it will preload the filter formats and not show - Select -.
None
None
Active
4.0
Code