[Phplib-trackers] [ phplib-Bugs-464957 ] wrong calculation of form indices
Brought to you by:
nhruby,
richardarcher
|
From: <no...@so...> - 2001-09-25 21:04:01
|
Bugs item #464957, was opened at 2001-09-25 14:03 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403611&aid=464957&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Daniel Wagner (wagi) Assigned to: Nobody/Anonymous (nobody) Summary: wrong calculation of form indices Initial Comment: class a1 extends tpl_tables { function setup_fields() { $this->form_data->add_element(array("name" => "a1"...)); ... } } class b1 extends a1 { function setup_fields() { a1::setup_fields (); $this->form_data->add_element(array("name" => "b1"...)); ... } } -------------- b1.ihtml: $this->form_data->start(...); $this->form_data->show_element("a1"); $this->form_data->show_element("b1"); $this->form_data->finish(...) In the above example you can see, that the printed form uses first the element declared in a1 and then b1. The javascript applies the regex rules on the wrong form element, because the indices are wrong. I'm not sure if this is caused of the strange(?) use. phplib version: 7.3dev-3.1 (debian) cheers, wagi ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403611&aid=464957&group_id=31885 |