Closed (fixed)
Project:
Conditional Fields
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2016 at 23:48 UTC
Updated:
24 Apr 2017 at 15:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zerolab commentedAttaching a patch that supports
'#type' => 'radio'.I don't think we need to support radios as a separate type as it uses 'radio' for each element internally.
Comment #3
itsekhmistro commentedThank you for the patch. Looks great for me.
It would be also great to have a Browser test for it.
Comment #4
itsekhmistro commentedComment #5
itsekhmistro commentedUpdating status to recheck current tests.
Comment #6
itsekhmistro commentedStrange but tests are failing within this patch.
Need to look into details later.
Comment #7
zrashevskaya commentedMade some changes to the patch. Tests are working correctly now.
Comment #8
zrashevskaya commentedComment #9
drholera commentedComment #10
zrashevskaya commentedAdded widget functionality to radio handler.
Comment #11
topplestack commentedUnable to apply patch #10
Warning: require(/var/www/bfas-vm/tnr/web/modules/contrib/conditional_fields/src/Form/ConditionalFieldEditFormTab.php): failed to open stream: No such file or directory in require() (line 110 of /var/www/bfas-vm/tnr/vendor/symfony/class-loader/ApcClassLoader.php).
require() (Line: 110)
Symfony\Component\ClassLoader\ApcClassLoader->loadClass('Drupal\conditional_fields\Form\ConditionalFieldEditFormTab')
spl_autoload_call('Drupal\conditional_fields\Form\ConditionalFieldEditFormTab')
class_exists('\Drupal\conditional_fields\Form\ConditionalFieldEditFormTab') (Line: 23)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('\Drupal\conditional_fields\Form\ConditionalFieldEditFormTab') (Line: 47)
Drupal\Core\Controller\HtmlFormController->getFormObject(Object, '\Drupal\conditional_fields\Form\ConditionalFieldEditFormTab') (Line: 59)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
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}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 652)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment #12
OlgaRabodzei commentedWas fixed in the last release(2017-Apr-07). Can someone check it, please?
Comment #13
OlgaRabodzei commentedComment #14
OlgaRabodzei commentedComment #15
christophedg commentedRadio buttons are indeed supported now for node entities (not for user entities).