With latest dev version, on a node creation form with fields from taxonomies with radio widgets, for example:
Dependent Dependees Description Actions
field_r_heating field_r_owner_relation visible value
with value matching set on "Any of these values OR" and 2 terms ID from the dependee taxonomy:
79
80
Conditional display works well but the logs show this message:
Warning: array_intersect(): Argument #1 is not an array in conditional_fields_evaluate_dependency() (line 721 of /var/www/html/modules/conditional_fields/conditional_fields.api.inc) #0 /var/www/html/core/includes/bootstrap.inc(548): _drupal_error_handler_real(2, 'array_intersect...', '/var/www/html/m...', 721, Array) #1 [internal function]: _drupal_error_handler(2, 'array_intersect...', '/var/www/html/m...', 721, Array) #2 /var/www/html/modules/conditional_fields/conditional_fields.api.inc(721): array_intersect('79\r\n80', Array) #3 /var/www/html/modules/conditional_fields/conditional_fields.api.inc(472): conditional_fields_evaluate_dependency('edit', '82', Array) #4 /var/www/html/modules/conditional_fields/conditional_fields.api.inc(357): conditional_fields_evaluate_dependencies(Array, Array, Object(Drupal\Core\Form\FormState), false) #5 [internal function]: conditional_fields_dependent_validate(Array, Object(Drupal\Core\Form\FormState), Array) #6 /var/www/html/core/lib/Drupal/Core/Form/FormValidator.php(277): call_user_func_array('conditional_fie...', Array) #7 /var/www/html/core/lib/Drupal/Core/Form/FormValidator.php(235): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState)) #8 /var/www/html/core/lib/Drupal/Core/Form/FormValidator.php(119): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState), 'node_resource_f...') #9 /var/www/html/core/lib/Drupal/Core/Form/FormBuilder.php(571): Drupal\Core\Form\FormValidator->validateForm('node_resource_f...', Array, Object(Drupal\Core\Form\FormState)) #10 /var/www/html/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('node_resource_f...', Array, Object(Drupal\Core\Form\FormState)) #11 /var/www/html/core/lib/Drupal/Core/Entity/EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm('node_resource_f...', Object(Drupal\Core\Form\FormState)) #12 /var/www/html/core/modules/node/src/Controller/NodeController.php(113): Drupal\Core\Entity\EntityFormBuilder->getForm(Object(Drupal\node\Entity\Node)) #13 [internal function]: Drupal\node\Controller\NodeController->add(Object(Drupal\node\Entity\NodeType)) #14 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #15 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #16 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #17 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #18 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #19 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(139): call_user_func_array(Object(Closure), Array) #20 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #21 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #30 {main}.
Comments
Comment #2
zerolab commentedYou will find the patch from #2833343-2: Re-add reset to default values option, mainly:
should fix that warning
Comment #4
itsekhmistro commentedThank you.
Fixed.