From e4aba9ae2548fc01cf33eff8132c19fb2fe660a8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 6 Sep 2016 15:33:26 +0200 Subject: [PATCH] add validation rule attribute to input field for interger attributes --- views/bootstrap/class.Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index ac03b9f4f..82e9eeaac 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1105,7 +1105,7 @@ $('#acceptkeywords').click(function(ev) { if (strlen($objvalue) > 80) { echo ''; } else { - echo "getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".($attrdef->getMinValues() > 0 ? ' required' : '')." />"; + echo "getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".($attrdef->getMinValues() > 0 ? ' required' : '').($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_int ? ' data-rule-digits="true"' : '')." />"; } } break;