Closed (duplicate)
Project:
CCK Fieldgroup Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2008 at 10:27 UTC
Updated:
19 Aug 2009 at 03:28 UTC
Hi,
I noticed a bug related to dynamic form elements, like node reference (when you add a field) or imagefield (after uploading an image) for example. I think we can generalize this issue to all elements that add contents in a #ahah wrapper.
CCK Fieldgroup tabs don't render updated display properly. For imagefield, the form element just disappear... For nodereference add button, it render all tabs into one page in a very strange way....
It is a known issue ? If yes, it is in the TODO list ?
Comments
Comment #1
Moonshine commentedHmm... we'll in general it's a known issue that ahah callbacks really don't know about the structure created by fieldgroup tabs. (And therefore don't place field updates within the tab structure correctly) Currently they all seem to only account for traditional cck fieldgroups. This is one of the reasons that we'd like to move to creating the tab structure in something like #pre_render once time allows. :/
That said, there are patched versions of the ahah callback functions used by Filefield/Imagefield and CCK (for general multivalue additions) included in the Fieldgroup Tabs modules and a menu alter statement that should force the system to use them over the original ones. I am using both successfully in a system I'm designing currently. I'm curious if the new callbacks just aren't being used in your case. If you are comfortable with putting a drupal_set_message('Hello world'); in one of the callbacks supplied by fieldgroup tabs that will at least tell you if they are being used when you do some field work. If they aren't then it may just be necessary to flush your cache to have the menus rebuilt.
There are other ahah callbacks which haven't been corrected I'm sure. (like core upload for example) At this point it's purely because I don't really use it. :) But if we can move to pre_render I *think it could clear everything up a bit.
Comment #2
nedjoDuplicate of #315015: Modified AHAH callbacks are needed for forms with CCK Fieldgroup Tabs.