public static function loadFixtures(\thebuggenie\core\entities\Scope $scope) { $statuses = array(); $statuses['New'] = '#FFF'; $statuses['Investigating'] = '#C2F533'; $statuses['Confirmed'] = '#FF55AA'; $statuses['Not a bug'] = '#44FC1D'; $statuses['Being worked on'] = '#5C5'; $statuses['Near completion'] = '#7D3'; $statuses['Ready for testing / QA'] = '#55C'; $statuses['Testing / QA'] = '#77C'; $statuses['Closed'] = '#C2F588'; $statuses['Postponed'] = '#FA5'; $statuses['Done'] = '#7D3'; $statuses['Fixed'] = '#5C5'; foreach ($statuses as $name => $itemdata) { $status = new \thebuggenie\core\entities\Status(); $status->setName($name); $status->setItemdata($itemdata); $status->setScope($scope); $status->save(); } }
?> style="display: none;"<?php } ?> > <?php echo __('Not determined'); ?> </span><?php break; case \thebuggenie\core\entities\CustomDatatype::STATUS_CHOICE: $status = null; $value = null; $color = '#FFF'; try { $status = new \thebuggenie\core\entities\Status($info['name']); $value = $status->getName(); $color = $status->getColor(); } catch (\Exception $e) { } ?> <span id="<?php echo $field; ?> _name"<?php if (!$info['name_visible']) { ?> style="display: none;"<?php } ?> ><div class="status_badge" style="background-color: <?php