Needs review
Project:
Dependent
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2008 at 00:30 UTC
Updated:
27 Sep 2008 at 12:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
Tamar Badichi-Levy commentedPlease export your cck content type and define what other modules are installed.
Comment #2
brad.bulger commentedi set up a new vanilla drupal 5.7 installation with just CCK and dependent:
cck-5.x-1.6-1.tar.gz
dependent-5.x-1.3-beta.tar.gz
drupal-5.7.tar.gz
all the modules that come with CCK are installed
i made a new content type with a multiple-value checkbox, a radio-button field, and a single-checkbox field, with text fields dependent on all of these. only the single-checkbox field is working for me.
i'm attaching a tarball with the export of the CCK type and a copy of the create content screen - the styles don't work in it but the javascript does, so you can see what i'm talking about, i hope.
thanks for checking this out
Comment #3
brad.bulger commentedah! found it. it was because i was using the "value|label" format for my allowed values - 'red|Red' instead of just 'Red'. just 'Red' works fine.
i'm attaching a patch - it is probably not the best way to actually fix this but it gets it working for now.
.
Comment #4
brad.bulger commentedupdating ticket status to reflect reality as i know it...
Comment #5
Tamar Badichi-Levy commentedOK. It seems the code added is a good solution. I'll add it to the next release.
Comment #6
regx commentedThis patch didn't work for me - I was using a select list with key|value options.
Here is a simpler patch that worked for me for key | values pairs.
Essentially it is the same thing using a split which I think is more efficient.