Check Problem:
1) Add 2 "cck other select" field in the same content type.
2) When display the form, only attached JavaScript function ("cckSelectOther") works in the last "cck other select field".

Apparently the error are in "cck_select_other.module" file (lines 238 to 245 and 265 to 272), when add drupal js settings.

I attach possible patch:
- cck_select_other.module: to work with multiples fields
- cck_select_other.js: to work with multiples fields (optimized code).

Sorry for my english, is very bad :(

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mradcliffe’s picture

Assigned: Unassigned » mradcliffe
Priority: Normal » Major
FileSize
7.49 KB

Thank you for the patch. I worked on this afternoon, finally, and got it working.

I wrote a basic test, but I cannot assert it via SimpleTest assertions because of SimpleTest limitations. However, I can confirm it works in SimpleTest using debug.

Posting a new patch.

mradcliffe’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.