Problem/Motivation

hi
i have a view result variable (filtering node by ID token) in place that is been used in action.

The problem is that since i have this variable is in place, any time i click on edit / save for any action/condition i always get the below notice . BUT the loop is working correctly.

 Notice: Undefined variable: field_type in Drupal\business_rules\Plugin\BusinessRulesVariable\ViewResultVariable->variableFields() (line 181 of modules/contrib/business_rules/src/Plugin/BusinessRulesVariable/ViewResultVariable.php).

Drupal\business_rules\Plugin\BusinessRulesVariable\ViewResultVariable->variableFields(Object) (Line: 93)
Drupal\business_rules\Plugin\BusinessRulesVariable\ViewResultVariable->changeDetails(Object, Array) (Line: 666)
Drupal\business_rules\Util\BusinessRulesUtil->getVariablesDetailsBox(Array) (Line: 181)
Drupal\business_rules\Form\ItemForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object) (Line: 387)
Drupal\business_rules\Form\ItemForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('business_rules_action_edit_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 717)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

delacosta456 created an issue.

delacosta456’s picture

hi
Looks like this happen when in views that supposed to be used (when configuring variable) there is field that is not directly tied to entity.
For example in views adding a "Custom Text" field.