diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index dae521b7f..c8351e37c 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -1292,7 +1292,7 @@ $('#acceptkeywords').click(function(ev) {
getType()) {
case SeedDMS_Core_AttributeDefinition::type_boolean:
echo "getId()."]\" value=\"0\" />";
@@ -1316,7 +1316,7 @@ $('#acceptkeywords').click(function(ev) {
} else {
echo "\"";
}
- echo "".($attrdef->getMinValues() > 0 ? ' required' : '').">";
+ echo "".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '').">";
if(!$attrdef->getMultipleValues()) {
echo "";
}
@@ -1335,9 +1335,9 @@ $('#acceptkeywords').click(function(ev) {
} else {
$objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : '';
if(strlen($objvalue) > 80) {
- echo "";
+ echo "";
} else {
- echo "getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".($attrdef->getMinValues() > 0 ? ' required' : '').($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_int ? ' data-rule-digits="true"' : '')." />";
+ echo "getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '').($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_int ? ' data-rule-digits="true"' : '')." />";
}
}
break;