mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
propperly check for multiple values
This commit is contained in:
parent
a1f6bd9a7d
commit
6a059c9a1b
|
@ -92,15 +92,18 @@ $(document).ready( function() {
|
||||||
print "<th></th>\n";
|
print "<th></th>\n";
|
||||||
print "</tr></thead>\n<tbody>\n";
|
print "</tr></thead>\n<tbody>\n";
|
||||||
foreach($res['frequencies'][$type] as $entry) {
|
foreach($res['frequencies'][$type] as $entry) {
|
||||||
|
$value = $selattrdef->parseValue($entry['value']);
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>".$entry['value']."</td><td>".$entry['c']."</td>";
|
echo "<td>".implode(';', $value)."</td><td>".$entry['c']."</td>";
|
||||||
/* various checks, if the value is valid */
|
/* various checks, if the value is valid */
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
/* Check if value is in value set */
|
/* Check if value is in value set */
|
||||||
if($selattrdef->getValueSet()) {
|
if($selattrdef->getValueSet()) {
|
||||||
if(in_array($entry['value'], $selattrdef->getValueSetAsArray()))
|
foreach($values as $v) {
|
||||||
|
if(!in_array($value, $selattrdef->getValueSetAsArray()))
|
||||||
printMLText("attribute_value_not_in_valueset");
|
printMLText("attribute_value_not_in_valueset");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user