Group cannot be controlled by a field in another group.

MarcElbichon - August 25, 2009 - 14:27
Project:Conditional Fields
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Why group cannot be controlled by a field in another group ?
Is there any reason to this ?

This can be done by commenting lines 484 and 489 like this :

<?php
//    if (!$in_group) {
     
if ($allowed_values[$field['field_name']] = content_allowed_values($field)) {
       
$available_fields[$field['field_name']] = $field;
      }
//  }
?>

You need too modify line 491 changing $context to 'group' (Warning on preg_match).

#1

peterpoe - December 2, 2009 - 14:30
Version:6.x-1.0-beta2» 6.x-2.x-dev

It would be nice, but it needs testing. When I disallowed this in the first place, there was a reason, but now I can't remember why (it might have to do with cases when one of the group is collapsed?).
Could you please update the feature to work with 6.x-2.x-dev and create a patch?

#2

trupal218 - December 3, 2009 - 02:49

subscribing

#3

MarcElbichon - December 3, 2009 - 09:40

See patch

AttachmentSize
conditional_fields.module.patch 2.19 KB
 
 

Drupal is a registered trademark of Dries Buytaert.