fix check for value in value set

This commit is contained in:
Uwe Steinmann 2017-05-02 18:33:07 +02:00
parent d3913318f5
commit 4e883444f2

View File

@ -90,8 +90,8 @@ $(document).ready( function() {
$content .= "<td>";
/* Check if value is in value set */
if($selattrdef->getValueSet()) {
foreach($values as $v) {
if(!in_array($value, $selattrdef->getValueSetAsArray()))
foreach($value as $v) {
if(!in_array($v, $selattrdef->getValueSetAsArray()))
$content .= getMLText("attribute_value_not_in_valueset");
}
}