
mercie_s at denison
Feb 5, 2009, 6:48 AM
Post #1 of 3
(1095 views)
Permalink
|
|
Fwd: Re: Bric2 callbacks: trail_cb and update_cb
|
|
We are currently working on fixing problems discovered with the add and deletion of elements in bric2. After updating to the latest versions of prototype and scriptaculous, we've come to the conclusion that the errors have something to do with the callbacks the form tries to execute. So, we were just wondering if someone could tell us what "story_prof|update_cb" and "story_prof|trail_cb" are trying to do, and where they are physically housed within the bricolage framework, to help us along the way to making them compatible with the current libraries. The errors we're seeing: If we try to add or delete an element, we see: "Can't call method "get_version" on an undefined value at /usr/local/bricolage/lib/Bric/App/Callback/Profile/Story.pm line 292" If we remove the update_cb from the top of comp/widgets/story_prof/edit_meta.html and we try to add an element, if it is the first element added on the page it will add it correctly. If you then try to add another element, it will replace the element above it you previously added. If you then go away from the story and return, all elements you added magically reappear in the correct order in which you added them. When trying to delete an element, no error is produced, but the element is not actually deleted either. If we then also remove trail_cb, we can delete elements just fine sometimes. Other times it will say it deleted an element but the element will not disappear. When adding elements, behavior is the same as before when we only removed update_cb. Thanks, Sarah Mercier
|