Bugs item #1450737, was opened at 2006-03-15 17:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=1450737&group_id=31885
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: OOH Forms
Group: current CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: CArlos Tineo (ctineo)
Assigned to: Nobody/Anonymous (nobody)
Summary: function validate in tpl_form.inc always return false
Initial Comment:
I work session4 with session4_custom, php4, postgreSQL 7.4
file tpl_form.inc (version stable/CVS) function validate()
always return false.
original:
function validate() {
global $form_name;
if (! is_object($this->form_data)) {
$this->setup();
}
if ($form_name == $this->classname) {
$err = $this->form_data->validate("ok");
if ($err == "ok") {
return $this->validate_input();
} else {
$this->error = $err;
return false;
}
} else {
return false;
}
The var global "$form_name" it's lost in some place,
its always is "".
I fixed with:
function validate() {
if (! is_object($this->form_data)) {
$this->setup();
}
if ($_POST["form_name"] == $this->classname) {
$err = $this->form_data->validate("ok");
if ($err == "ok") {
return $this->validate_input();
} else {
$this->error = $err;
return false;
}
} else {
return false;
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=1450737&group_id=31885
|