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.
Comments
Comment #2
marco commentedCredit should be given to https://www.drupal.org/u/peximo
Comment #5
douggreen commentedmerged, thanks