cmk_revert() results in an error in some cases

Created on 27 April 2023, over 1 year ago

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.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇮🇹Italy marco

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

Comments & Activities

Production build 0.71.5 2024