Problem/Motivation
The question is not required.
At the moment one can configure a faq field to be required but only the answer is validated to be filled in.
Proposed resolution
Make the question required as well.
Remaining tasks
Add a constraint on the question field.
User interface changes
none
API changes
none
Data model changes
Add 'not null' on the question column.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2976550_5.patch | 3.09 KB | mpp |
| #4 | 2976550_4.patch | 2.43 KB | mpp |
| #4 | interdiff_4.txt | 1.24 KB | mpp |
| #2 | both_question_and_answer_should_be_required-2976550-2.patch | 2.4 KB | sergiu stici |
Comments
Comment #2
sergiu stici commentedI created the patch, you can change this options in "Manage form display".
Comment #3
sergiu stici commentedComment #4
mpp commentedThanks @Sergiu Stici, I added $this->t() for the translations.
Comment #5
mpp commentedAlso added the settings to the schema.
Comment #6
pifagor commentedComment #8
pifagor commented