Conflicting with CCK 2.x

Onopoc - August 12, 2009 - 15:28
Project:Form Defaults
Version:6.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

formdefaults module is conflicting with CCK 2.x.

Note: I have tag this issue as critical because it mixes up data display. Plus according to the modules statistic page CCK is use on 50% of Drupal 6.x sites. source http://drupal.org/project/usage

Steps to reproduce this issue:
-Create a CCK content type at /admin/content/types/add

-Create at least 6 new fields at /admin/content/node-type/YOUR-CONTENT-TYPE-NAME-HERE/fields
Make sure you have 2 fields of the same type. For example 2 text fields, 2 number fields, 2 any type of field. Add a few descriptions. Leave some descriptions empty.

-Create 3 or 4 pages base on the new content type at /node/add/YOUR-CONTENT-TYPE-NAME-HERE

-Using formdefaults module change all field titles and description and weight. Changing the weight been the most important. To make your life easier later make sure you're using an obvious naming. Such as "Title 1", "Title 2", "Title 3", "Description 1", "Description 2", "Description 3" and so on.

-Using CCK change the weight of ALL fields at /admin/content/node-type/YOUR-CONTENT-TYPE-NAME-HERE/fields
By changing weight I mean changing the field order by using the CCK drag and drop feature, the crosses.

-Save the CCK content type.

-Try to view or edit the CCK content type. This is were this issue is happening. You'll notice that some field titles and description and weight are mixed up. By mixed up I mean some field titles are display at the wrong weight (order). For example the title of a field is now display on another field. User are confused type in data in the wrong field. Expected result is not mixing up any field titles and description and weight. Unless set with formdefaults or CCK.

-Last step deactivate the formdefaults. View or edit the same page and everything is back to normal. The mixed-up is gone.

Using:
-Drupal 6.12
-CCK 2.4
-formdefaults 1.0

 
 

Drupal is a registered trademark of Dries Buytaert.