@@ 2653-2660 (lines=8) @@ | ||
2650 | else if ($fk == 'module') { |
|
2651 | $new_modules = []; |
|
2652 | $module_ids = []; |
|
2653 | if (is_array($issue[$fk])) { |
|
2654 | $module_ids = $issue[$fk]; |
|
2655 | } |
|
2656 | else |
|
2657 | { |
|
2658 | $module_ids = explode(',', $issue[$fk]); |
|
2659 | } |
|
2660 | foreach ($module_ids as $id) |
|
2661 | { |
|
2662 | if (!isset($modules[$id]) || !$modules[$id]) { |
|
2663 | continue; |
|
@@ 2710-2717 (lines=8) @@ | ||
2707 | else if ($fields[$fk]['type'] == 'SingleVersion' || $fields[$fk]['type'] == 'MultiVersion') { |
|
2708 | $new_versions = []; |
|
2709 | $version_ids = []; |
|
2710 | if (is_array($issue[$fk])) { |
|
2711 | $version_ids = $issue[$fk]; |
|
2712 | } |
|
2713 | else |
|
2714 | { |
|
2715 | $version_ids = explode(',', $issue[$fk]); |
|
2716 | } |
|
2717 | foreach ($version_ids as $id) |
|
2718 | { |
|
2719 | if (isset($versions[$id]) && $versions[$id]) { |
|
2720 | $new_versions[] = $versions[$id]; |
|
@@ 2747-2754 (lines=8) @@ | ||
2744 | $tmpOptions[$ov['id']] = $ov['name']; |
|
2745 | } |
|
2746 | $ov_ids = []; |
|
2747 | if (is_array($issue[$fk])) { |
|
2748 | $ov_ids = $issue[$fk]; |
|
2749 | } |
|
2750 | else |
|
2751 | { |
|
2752 | $ov_ids = explode(',', $issue[$fk]); |
|
2753 | } |
|
2754 | $ov_names = []; |
|
2755 | foreach ($ov_ids as $ovid) |
|
2756 | { |
|
2757 | $ov_names[] = isset($tmpOptions[$ovid]) ? $tmpOptions[$ovid] : ''; |