Problem/Motivation
Failing to create rule.
There is a an ajax error in chrome dev console.
The specified #ajax callback is empty or not callable
Steps to reproduce
Drupal 9.4.6
Business Rules 2.0 Beta1
Proposed resolution
The problem was caused by
1. An implode exception where the second argument being a string instead of an array
https://git.drupalcode.org/project/business_rules/-/blob/2.x/src/Form/Bu...
2. That causes the form to return early thus omitting the rest of the form
https://git.drupalcode.org/project/business_rules/-/blob/2.x/src/Form/Bu...
3. And that causes the ajax form builder unable to find the correct triggering form element, causing the ajax form error.
Idea solution:
Fixed the tags input so that its value is an array instead of a string. But I am not sure how to do that.
https://git.drupalcode.org/project/business_rules/-/blob/2.x/src/Form/Bu...
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork business_rules-3311008
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
drupal.tech commentedI am also facing the same issue in the business rule module cannot able to create a rule drop-down not showing the target bundle