Problem/Motivation

On the admin config form it's using lazy_is_enabled() to check if there are any enabled text formats using the Lazy Load filter.

This is using the database to check if there is any configuration applied to any of the existing formats.
This works correctly, however there is also the possibility to create ConfigOverrides, which don't live in that database table.

Proposed resolution

Instead of checking the database settings grab the active configuration to see if anything is applied.

CommentFileSizeAuthor
#2 3056630-2.patch436 bytesronaldtebrake

Comments

ronaldtebrake created an issue. See original summary.

ronaldtebrake’s picture

StatusFileSize
new436 bytes

Attached a patch to give an idea of what I'm talking about.
Won't mark it up for review think it should be solved better.

  • osman committed 0bd568e on 8.x-2.x
    Issue #3056630 Get cached filter formats, rather than querying database
    
osman’s picture

Category: Bug report » Task

Seems getting the filter formats via filter_formats() is actually a much better option, as it returns cached list of enabled text formats.

btw, which ConfigOverride module you tried this with? https://www.drupal.org/project/config_override or https://www.drupal.org/project/coi

osman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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