[Qual] Fixed HTML select form selected attribute

Dolibarr uses HTML 4.01 or HTML5 doctypes.
The select form selected attribute should not have a value.
This commit is contained in:
Raphaël Doursenaud
2015-05-07 12:20:20 +02:00
parent b8d9c20731
commit 5d2f081152
46 changed files with 205 additions and 205 deletions

View File

@@ -737,7 +737,7 @@ class ExtraFields
{
list($val, $parent) = explode('|', $val);
$out.='<option value="'.$key.'"';
$out.= ($value==$key?' selected="selected"':'');
$out.= ($value==$key?' selected':'');
$out.= (!empty($parent)?' parent="'.$parent.'"':'');
$out.='>'.$val.'</option>';
}
@@ -849,7 +849,7 @@ class ExtraFields
$labeltoshow=dol_trunc($obj->$field_toshow,18).' ';
}
}
$out.='<option value="'.$obj->rowid.'" selected="selected">'.$labeltoshow.'</option>';
$out.='<option value="'.$obj->rowid.'" selected>'.$labeltoshow.'</option>';
}
else
{
@@ -866,7 +866,7 @@ class ExtraFields
if (empty($labeltoshow)) $labeltoshow='(not defined)';
if ($value==$obj->rowid)
{
$out.='<option value="'.$obj->rowid.'" selected="selected">'.$labeltoshow.'</option>';
$out.='<option value="'.$obj->rowid.'" selected>'.$labeltoshow.'</option>';
}
if (!empty($InfoFieldList[3]))
@@ -875,7 +875,7 @@ class ExtraFields
}
$out.='<option value="'.$obj->rowid.'"';
$out.= ($value==$obj->rowid?' selected="selected"':'');
$out.= ($value==$obj->rowid?' selected':'');
$out.= (!empty($parent)?' parent="'.$parent.'"':'');
$out.='>'.$labeltoshow.'</option>';
}