From 4647856c77c1a64b1b0c8b955b7d6bee6fb7ff7c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Oct 2016 07:04:32 +0200 Subject: [PATCH] =?UTF-8?q?check=20if=20used=20values=20are=20in=20value?= =?UTF-8?q?=D1=95et?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/bootstrap/class.AttributeMgr.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 ""; }