SF Bug #2987374 - autofill problem on samba passwords

This commit is contained in:
Deon George 2011-04-28 00:21:38 +10:00
parent bf8ac5306e
commit 75640ccc3e

View File

@ -2360,13 +2360,13 @@ function deleteAttribute(attrName,friendlyName,i)
/** PASSWORD ATTRIBUTES **/
protected function drawJavascriptPasswordAttribute($attribute) {
static $drawn = false;
static $drawn = array();
# This JS may have been rendered by multiple Binary attributes
if ($drawn)
if (isset($drawn[$attribute->getName()]) && $drawn[$attribute->getName()])
return;
else
$drawn = true;
$drawn[$attribute->getName()] = true;
printf('<!-- START: PASSWORD ATTRIBUTE %s (%s)-->',__METHOD__,$attribute->getName());
echo "\n";