AjaxResponseAttachmentsProcessor is flagging optimize_js to TRUE only when in maintenance mode

Created on 10 April 2024, 6 months ago
Updated 11 April 2024, 6 months ago

Problem/Motivation

There seems to be a small logic error in this class, the $optimize_js variable can become TRUE only when the site is in maintenance mode

    // Aggregate CSS/JS if necessary, but only during normal site operation.
    $optimize_css = !$maintenance_mode && $this->config->get('css.preprocess');
    $optimize_js = $maintenance_mode && $this->config->get('js.preprocess');

Steps to reproduce

Proposed resolution

* Fix the variable assignment to include the missing exclamation mark.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Asset libraryΒ  β†’

Last updated 2 days ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024