Problem/Motivation

Certain revert types do not work and result in this error:
Thu, 27 Apr 2023 02:07:01 -0700 severity=error url=... timestamp="1682586421" type="php" ip=127.0.0.1 request_uri="..." referer="" uid=0 prsid=Unknown link="" message="Error: Call to undefined function features_get_default() in features_cmk_revert() (line 173 of /var/www/html/docroot/sites/all/modules/contrib/cmk/includes/features.inc)."

Steps to reproduce

Create an update hook reverting "filter", e.g.

  cmk_revert('config', 'filter', ['full']);

Proposed resolution

Include "features.export" in features_cmk_revert().

Remaining tasks

Testing.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
cmk.patch448 bytesmarco

Comments

marco created an issue. See original summary.

marco’s picture

Credit should be given to https://www.drupal.org/u/peximo

  • douggreen committed 9328065e on 7.x-1.x authored by peximo
    Issue #3356836 by marco: cmk_revert() results in an error in some cases
    

douggreen credited peximo.

douggreen’s picture

Status: Active » Fixed

merged, thanks

Status: Fixed » Closed (fixed)

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