[Formsess-devel] Bug: input.class.php
Status: Beta
Brought to you by:
mrkatana
|
From: David <da...@df...> - 2004-02-03 14:12:35
|
Hello,
I just noticed, that all value attributes for textfields got lost.
That's the problem:
input.class.php:49
// create the string with the smarty delimiters and all attributes
$string = 'fs_input_' . $this->getAttributeValue('type') . ' name="' . $this->getAttributeValue('name') . '"';
$this->deleteAttribute('type'); $this->deleteAttribute('value');
The value attribute is deleted without being added to the string..
Is there any reason not just to change it to
// create the string with the smarty delimiters and all attributes
$string = 'fs_input_' . $this->getAttributeValue('type');
and handling the name & value attribute later with all the others?
(That way, my fix to use smarty vars & functions would also apply to
that two attributes.)
-david
|