| Comment | File | Size | Author |
|---|---|---|---|
| #6 | set-proper-format-default-2004672-6.patch | 10.69 KB | berdir |
| #4 | set-proper-format-default-2004672-4.patch | 773 bytes | berdir |
Issue fork drupal-2004672
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
sunAny chance to get a clarification on the problem space here?
"Default value" in the context of text formats is very complicated/problematic, so it would be good to have a very clear description here.
Lastly, is this a task or a bug?
Comment #2
fagoText items currently have:
Thus, filter formats would not have a default value applied *if* configurable fields wouldn't provide one. Configurable fields regularly do, so it's not a problem here, i.e. the filter format would not receive a default value only if used as non-configurable field *and* if none would be specified explicitly in code.
Given check_markup() falls back to a fallback filter format meanwhile, I'm not sure this is still need anyway though?
Comment #3
jibranComment #4
berdirThis got a lot easier with the refactoring.
I don't think this is a bug, as fago said, it will fall back to the right format anyway, but I think this would be more consistent.
This might produce a few test fails, lets see.
Comment #6
berdirThis doesn't actually work ;)
The field item is automatically filtered away again because it is considered empty. We need to ensure that format is set when a value is assigned instead. Assigning to @fago for feedback.
Comment #8
fagoAs discussed, it would make sense to me to NOT filter for empty items after creating default values. An empty default value seems valid to me and should be shown on a form, for example.
Comment #22
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #23
smustgrave commentedwanted to bump 1 more time before closing.