Problem/Motivation

The file_delete_ui_install() hook doesn't work well for profile installations because there's a possibility that the views.view.files config might not exist at that point.

Steps to reproduce

Add the module to a profile installation will create an invalid views.view.files config.

Proposed resolution

Check that the config exists before attempting to update it.

Remaining tasks

Provide issue fork/patch.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon 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

codebymikey created an issue. See original summary.

codebymikey’s picture

Status: Active » Needs review
StatusFileSize
new612 bytes

douggreen’s picture

Status: Needs review » Fixed

Thanks! I committed a slight tweak from this so that it still catches the case when $config does not exist at all (I'm not sure that it can ever happen, but I didn't want to lose that check). If you confirm this works, I'll tag a new release.

codebymikey’s picture

Status: Fixed » Reviewed & tested by the community

All looks good to me.

codebymikey’s picture

Status: Reviewed & tested by the community » Fixed

This issue has been fixed and tagged.

Status: Fixed » Closed (fixed)

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