diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index 7fd0702a5..0807a8249 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -76,7 +76,7 @@ $(document).ready( function() {
@@ -89,9 +89,21 @@ $(document).ready( function() { print "\n\n"; print "".getMLText("attribute_value")."\n"; print "".getMLText("attribute_count")."\n"; + print "\n"; print "\n\n"; foreach($res['frequencies'][$type] as $entry) { - echo "".$entry['value']."".$entry['c'].""; + echo ""; + echo "".$entry['value']."".$entry['c'].""; + /* various checks, if the value is valid */ + echo ""; + /* Check if value is in value set */ + if($selattrdef->getValueSet()) { + if(false === array_search($entry['value'], $selattrdef->getValueSetAsArray())) + printMLText("attribute_value_not_in_valueset"); + } else { + } + echo ""; + echo ""; } print ""; }