@@ 2327-2334 (lines=8) @@ | ||
2324 | } |
|
2325 | } |
|
2326 | else if (in_array($field['type'], [ 'Select', 'RadioGroup', 'SingleVersion' ])) { |
|
2327 | foreach ($field['optionValues'] as $val) |
|
2328 | { |
|
2329 | if ($val['name'] === $field_value) { |
|
2330 | $issue[$field_key] = $val['id']; |
|
2331 | break; |
|
2332 | } |
|
2333 | } |
|
2334 | if (!isset($issue[$field_key])) { |
|
2335 | $err_msgs[$cur_title][] = $fields[$field_key] . '列值匹配失败。'; |
|
2336 | } |
|
2337 | } |
|
@@ 2348-2356 (lines=9) @@ | ||
2345 | } |
|
2346 | ||
2347 | $isMatched = false; |
|
2348 | foreach ($field['optionValues'] as $val2) |
|
2349 | { |
|
2350 | if ($val2['name'] === $val) { |
|
2351 | $issue[$field_key][] = $val2['id']; |
|
2352 | $isMatched = true; |
|
2353 | break; |
|
2354 | } |
|
2355 | } |
|
2356 | if (!$isMatched) { |
|
2357 | $err_msgs[$cur_title][] = $fields[$field_key] . '列值匹配失败。'; |
|
2358 | } |
|
2359 | } |