Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-3.x-dev
Component:
content_multigroup.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2009 at 06:59 UTC
Updated:
16 Nov 2009 at 19:30 UTC
Comments
Comment #1
markus_petrux commentedAh, yes. I forgot to code something here. In fact, you should not be able to change the widget type if the field is in a multigroup if you choose a widget type that is not compatible with multigroups.
We can disable the widget type selector, which is easy, or we need to perform a more complex validation that ensures an incompatible widget type cannot be selected. And if we do this, we could also hide these from the widget type selector.
Comment #2
markus_petrux commentedOk, a fix has been committed to CVS.
http://drupal.org/cvs?commit=283014
The behavior in the Basic Field Settings form works as follows:
- If a widget cannot be moved out of a multigroup, the widget type selector is disabled and a warning is displayed.
- If a widget in the list of available widgets is not compatible with multigroups, the option is removed.
This is done applying the same checks that are already implemented in the validate handler of the "Manage fields" screen. You cannot move a field into a multigroup, if this field uses a widget type that is not compatible with multigroups. And... you cannot move a field out of a multigroup, in certain situations. The problem is that fields in multigroups may collect the same value several times, and this is not possible when the field is not part of a multigroup. Think about widgets types such as optionwidgets, content taxonomy widgets, etc.