On Thu, Sep 27, 2012 at 8:45 AM, Brettschneider Falk
<
fbretts...@baumer.com> 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