Atk/Achievo: bug fixing of the atkTimeAttribute and atkDateTimeAttribute

When working with the ATK Framework i found that atkTimeAttribute (and atkDateTimeAttribute) has a bug that prevent ATK from working (expecially autocomplete)

at line 277 of class.atkTimeAttribute.php this is the line to fix:

$m_secBox = "<input type=\"hidden\" name=\"".$fieldprefix.$this->fieldName()."[seconds]\" value=\"00\">\n";

replace it with:

$m_secBox = "<input type=\"hidden\" id=\"".$fieldprefix.$this->fieldName()."[seconds]\" name=\"".$fieldprefix.$this->fieldName()."[seconds]\" value=\"00\">\n";

the missing ID was causing javascript failing and aborting all the other keyboard handlers.

Atk/Achievo: bug fixing of the atkTimeAttribute and atkDateTimeAttribute, 4.7 out of 5 based on 3 ratings
GD Star Rating
loading...