When creating a new rule, this error is present in the log: Invalid arguments passed in Drupal\business_rules\Form\BusinessRuleForm->form() (line 143
Create new rule, click on save and go to log messages to see the error.
This solves the problem
https://www.drupal.org/project/business_rules/issues/2998984#comment-131... →
In modules/contrib/business_rules/src/Form/BusinessRuleForm.php Line 140 :
$form['tags'] = [
'#type' => 'textfield',
'#title' => $this->t('Tags'),
// '#default_value' => implode(', ', $business_rule->getTags()),
'#default_value' => (is_array($business_rule->getTags()) && count($business_rule->getTags())) ? implode(', ', $business_rule->getTags()) : '',
'#description' => $this->t('List of comma-separated tags.'),
'#required' => FALSE,
'#autocomplete_route_name' => 'business_rules.autocomplete_tags',
'#autocomplete_route_parameters' => [],
];
And /modules/contrib/business_rules/src/Form/ItemForm.php Line 150 :
$form['tags'] = [
'#type' => 'textfield',
'#title' => $this->t('Tags'),
// '#default_value' => $item->getTags() ? implode(', ', $item->getTags()) : '',
'#default_value' => (is_array($item->getTags()) && count($item->getTags())) ? implode(', ', $item->getTags()) : '',
'#description' => $this->t('List of comma-separated tags.'),
'#required' => FALSE,
'#weight' => 41,
'#autocomplete_route_name' => 'business_rules.autocomplete_tags',
'#autocomplete_route_parameters' => [],
];
Closed: duplicate
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.