I use editablefield (version 6.x-1.1) in combination with Content Taxonomy (version 6.x-1.0-beta6) for inline editing of taxonomy CCK fields defined on a given node type. The multiplicity of the taxonomy terms for each field is set to "unlimited".

When there are 5 taxonomy terms assigned to one taxonomy term, each of the 5 terms (each of the the 5 "div" entries generated by CCK) is replaced by an editable field that displays all 5 terms. In other words, I get the *same* editable field repeated 5 times.

Comments

ShutterFreak’s picture

Oops - read "When there are 5 taxonomy terms assigned to one taxonomy term" as "When there are 5 taxonomy terms assigned to one taxonomy field in the content type".

ShutterFreak’s picture

StatusFileSize
new9.53 KB

I believe the problem resides in theme_editablefields_formatter_editable() in editablefields.module where an "editablefield" <div> is created for each and every taxonomy term, instead of doing this only for the list of taxonomy terms, or maybe only for the first taxonomy term only. I understand that the AJAX magic automagically replaces every occurrence of "editablefield" <div> with the AJAX editablefields widget.

If the code could be rewritten to only add class="editablefieds" to the list instead of each term individually then I think this module may be able to do the job when multiple taxonomy terms can be selected/added.

I have attached a screen capture of a node with "editablefields" enabled and 3 terms listed to illustrate the problem.

markfoodyburton’s picture

There is a fix for this in the new dev version, not sure if it totally fixes the problem - can you check?

ShutterFreak’s picture

Version: 6.x-1.1 » 6.x-1.x-dev

I get a white error page with the following message:

Fatal error: Call to undefined function content_access() in C:\xampp\htdocs\sites\all\modules\editablefields\editablefields.module on line 84

markfoodyburton’s picture

you need the latest dev version of cck too

Cheers

Mark.

joelpittet’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this to triage the queue. Feel free to comment if you'd like this to be re-opened, though currently there is nobody supporting the 6.x branch.