Merge pull request #12423 from MrPetovan/bug/9286-admin-features-lock

Show lock status even when feature is disabled in Admin/Features
This commit is contained in:
Tobias Diekershoff 2022-12-15 06:04:08 +01:00 committed by GitHub
commit 3d3ccdad77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ class Features extends BaseAdmin
DI::config()->set('feature', $feature, $val);
if (!empty($_POST[$featurelock])) {
DI::config()->set('feature_lock', $feature, $val);
DI::config()->set('feature_lock', $feature, 1);
} else {
DI::config()->delete('feature_lock', $feature);
}