On Thu, Aug 25, 2011 at 01:33:16PM -0700, Alexey Neyman wrote: > Hi all, > > I tried to configure two 'select multiple' CFs, one based on another (e.g. > "affected components/subcomponents"). So, I have options A, B and C in CF #1 > and options A1, A2, A3, B1, B2, B3, C1, C2, C3 in CF #2 (with A1..3 dependent > on category A, and so on). > > All works fine as long as a single entry is selected in CF #1. If I select > more than one, however, only one group is displayed in CF #2. > > E.g., if I select ABC in CF #1, CF #2 displays A1, A2, A3. Same if I select > AB > or AC. If I select BC in CF #1, CF #2 displays B1, B2, B3. > > I would expect that CF #2 would display all applicable suboptions; e.g. if BC > is selected in CF #1, CF #2 would display B1, B2, B3, C1, C2, C3. > > Is it the intended behavior? > > It looks like the javascript code in /Elements/EditCustomFieldSelect needs to > pass the element (basedon) to filter_cascade(). In /NoAuth/js/cascaded.js, > filter_cascade() needs to check if element allows for multiple selection and > add perform the "for (i in complete_children)" loop for each of the selected > values.
There is a report of this bug and some proposed patches in a bug report in the bug tracker: http://issues.bestpractical.com/Ticket/Display.html?id=16336 You can log in to see it as guest/guest -kevin
pgpWlqlHjpcbZ.pgp
Description: PGP signature
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Chicago, IL, USA September 26 & 27, 2011 * San Francisco, CA, USA October 18 & 19, 2011 * Washington DC, USA October 31 & November 1, 2011 * Melbourne VIC, Australia November 28 & 29, 2011 * Barcelona, Spain November 28 & 29, 2011
