I have this error TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 51 in /business_rules/src/Plugin/BusinessRulesCondition/ConditionSet.php) thrown after trying to add Logical AND condition.

Drupal 9.3.9
PHP 8.0

CommentFileSizeAuthor
#8 3282407-8.patch1.32 KBnarendra.rajwar27

Comments

kazah created an issue. See original summary.

kazah’s picture

Same error in ActionSet

TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 69 из /business_rules/src/Plugin/BusinessRulesAction/ActionSet.php)

drupalevangelist’s picture

@kazah I'm not familiar with the Business Rules module, but you may want to take a look at this issue - https://www.drupal.org/project/menu_item_extras/issues/3268152

kris77’s picture

Same issue as @kazah

kris77’s picture

@kazah in conditionset.php file change this code:

$current_conditions = $condition->getSettings('items');

With this:

$current_conditions[] = $condition->getSettings('items');
kazah’s picture

Thank you, @Kris77

drupalevangelist’s picture

@kazah - please ensure to create a patch and apply it.

narendra.rajwar27’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

Adding patch.