Bug : card cannot use a attribute of the type "card", reason : the query was

wrong and there were a confusion between this->name and this->id in "get_js_attr()"
This commit is contained in:
Dany De Bontridder 2019-07-22 21:22:16 +02:00
parent 2b75c9720a
commit 27f5673f2d
3 changed files with 4 additions and 3 deletions

View file

@ -139,7 +139,7 @@ class HtmlInput
for ($i=0; $i<count($this->attribute); $i++)
{
list($name, $value)=$this->attribute[$i];
$tmp1=sprintf("$('%s').%s='%s';", $this->name, $name, $value);
$tmp1=sprintf("$('%s').%s='%s';", $this->id, $name, $value);
$attr.=$tmp1;
}
$attr=create_script($attr);