SF Bug #2554402 - template autofill command not work on appearance,date_attrs

This commit is contained in:
Deon George
2009-11-21 12:11:45 +11:00
parent 23a2da1f26
commit efd1860a91
3 changed files with 12 additions and 6 deletions

View File

@@ -702,7 +702,7 @@ class PageRender extends Visitor {
$val = $attribute->getValue($i);
echo '<span style="white-space: nowrap;">';
printf('<input type="text" class="value" id="f_date_%s_%s" name="new_values[%s][%s]" value="%s" %s%s %s %s/>&nbsp;',
printf('<input type="text" class="value" id="new_values_%s_%s" name="new_values[%s][%s]" value="%s" %s%s %s %s/>&nbsp;',
$attribute->getName(),$i,
htmlspecialchars($attribute->getName()),$i,htmlspecialchars($val),
$attribute->needJS('focus') ? sprintf('onFocus="focus_%s(this);" ',$attribute->getName()) : '',