Forum OpenACS Development: ad_form broken on head?

Collapse
Posted by Mark Aufflick on
I can't convince ad_form to place a value in the hidden field it generates for the :key, whether I pass in the key value, let it figure it out from the default _seq or specify my own _seq.

I wen as simple as:

ad_page_contract {
} {
    object_one_id
}

set object_one_title "[item::get_title $object_one_id] ($object_one_id)"
set form_name "rel_form"
ad_form -name $form_name  -form {
    object_one_id:key

    {object_one_title:text(inform)
        {label "Object one"}
        {value $object_one_title}}
}
and the form contains: <input type="hidden" name="object_one_id" />

I notice a whole gob of changes to the key and error handling since 5.0, can anyone offer any suggestions/culprits?

Collapse
Posted by Don Baccus on
I'll try to look at this today ... it was working on HEAD a week or so ago but I've not updated since.
Collapse
Posted by Don Baccus on
HEAD's not installing at the moment due to Timo's massive changes so I didn't get around to checking on this problem.  I'm sure we'll get HEAD up and running soon and I'll take a look at this afterwards.
Collapse
Posted by Don Baccus on
OK the changes that broke HEAD have been rolled back, I re-installed, then installed and mounted the "notes" package (which I recently modified to use ad_form and its key management feature).

Works fine ... can you try your code again to see if it works with the current version of ad_form in HEAD or not?

TIA ...