Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
second part of https://www.drupal.org/node/2890035 .
Found problem. When you use drush, filter_default_format exists, but return anonimoius user.
[30-Oct-2017 15:06:44 Europe/Moscow] Error: Call to a member function id() on boolean in /home/qluuidho/public_html/core/modules/filter/filter.module on line 212 #0 /home/qluuidho/public_html/modules/contrib/webform/src/Plugin/WebformElement/TextFormat.php(166): filter_default_format()
#1 /home/qluuidho/public_html/modules/contrib/webform/src/Plugin/WebformElementBase.php(209): Drupal\webform\Plugin\WebformElement\TextFormat->getItemDefaultFormat()
Comment | File | Size | Author |
---|---|---|---|
#4 | error_call_to_a_member-2919721-4.patch | 1.87 KB | jrockowitz |
| |||
2890035-fix-format.patch | 687 bytes | adubovskoy | |
|
Comments
Comment #2
adubovskoy CreditAttribution: adubovskoy at RaDon commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWow! There is a major issue with the way the TextFormat::getItemDefaultFormat is currently setup because the default format changes depending on who is logged in.
I think the only solution is to have TextFormat::getItemDefaultFormat() return 'value';
The attached patch probably needs some test coverage.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented