On Thu, Sep 27, 2012 at 8:45 AM, Brettschneider Falk <[email protected]> wrote: > Christopher Nelson wrote: >> Alas it appears to be for 0.12 (the source tree I checked out has >> 0.12/trunk) and I'm in 0.11.6 (I see errors). > ... >> cannot import name add_script_data") > > Yes, that add_script_data() is a new API function of 0.12. A > porting-back-to-0.11 discussion is running at #10240 (though for another > plugin). There are already hints what is to do; if you provided a patch, the > benefit would be doubled.
I put a patch in http://trac-hacks.org/ticket/10240#comment:7. It seems a straight-forward addition. With that in place on top of 0.11.6, GroupTicketFields plugin loads without error and I get no JS run time errors. My ticket includes the configured fieldset: <fieldset class="property_group" id="properties_relationships"><legend>Relationships</legend><table id="table_relationships"></table></fieldset> but whereas the plugin does: groups_list = { 'field_groups': groups } group_order = { 'field_groups_order': group_order } data['fields'] = filtered_fields data['field_groups'] = groups add_script_data(req, groups_list) add_script_data(req, group_order) I can't find the string "groups" in the page source of the ticket display. Any clues I can pursue would be welcome. Chris -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
