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()
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adubovskoy created an issue. See original summary.

adubovskoy’s picture

Issue summary: View changes
jrockowitz’s picture

Status: Active » Needs review
jrockowitz’s picture

Wow! 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.

jrockowitz’s picture

Priority: Normal » Major

  • jrockowitz committed 65d5286 on 8.x-5.x
    Issue #2919721 by adubovskoy, jrockowitz: Error: Call to a member...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.