[Phplib-trackers] [ phplib-Bugs-464957 ] wrong calculation of form indices
Brought to you by:
nhruby,
richardarcher
|
From: <no...@so...> - 2002-07-01 21:48:20
|
Bugs item #464957, was opened at 2001-09-25 17:03 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=464957&group_id=31885 Category: None Group: None >Status: Pending 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 ---------------------------------------------------------------------- >Comment By: nathan hruby (nhruby) Date: 2002-07-01 17:48 Message: Logged In: YES user_id=19736 First trying upgrading to 7.4 Second, if a1 inherits from b1, don't call the method from the parent name (a1;;method()) just call $this->method() as method exsists inside of b1 when instanced. I personally don't trust the :: method calling when $this is involved. Please try these and get back to us. Changing status to pending, bug will be closed if suggested fix works or no feedback is heard in 30 days ---------------------------------------------------------------------- Comment By: Daniel Wagner (wagi) Date: 2001-09-25 17:11 Message: Logged In: YES user_id=32549 argh, the first line is of course: class a1 extends tpl_form { ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=464957&group_id=31885 |