Skip to content

Commit a270b92

Browse files
committed
Take two
1 parent 8e19978 commit a270b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/ConditionsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function beforeAction($action): bool
4141

4242
$this->requireCpRequest();
4343

44-
$baseConfig = Json::decodeIfJson($this->request->getBodyParam('config'));
44+
$baseConfig = Component::cleanseConfig(Json::decodeIfJson($this->request->getBodyParam('config')));
4545
$config = Component::cleanseConfig($this->request->getBodyParam($baseConfig['name']));
4646
$newRuleType = ArrayHelper::remove($config, 'new-rule-type');
4747
$conditionsService = Craft::$app->getConditions();

0 commit comments

Comments
 (0)