Loading htdocs/lib/graph.php +1 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ function get_line_graph_json($data, $colours = null, $cron = false) { function get_graph_colours($data, $colours = null) { // Using colours in rgb format to allow for the use of rgba colours in Chart.js // 10 defaults: Red, Green, Blue, Yellow, Sky blue, Magenta, Orange, Light blue, Grey, Purple $defaultcolours = ['187,35,39','59,140,46','61,132,203','227,171,0','0,74,136','139,62,138','220,109,10','29,183,197','116,116,116','62,35,110']; $defaultcolours = array('187,35,39','59,140,46','61,132,203','227,171,0','0,74,136','139,62,138','220,109,10','29,183,197','116,116,116','62,35,110'); // We try to set colours in this order: // passed in by user overides Loading htdocs/testing/frameworks/behat/classes/BehatForms.php +2 −2 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class BehatForms extends BehatBase { */ public function iFillInSelect2Field($field, $textValues) { $page = $this->getSession()->getPage(); $values = []; $values = array(); foreach(preg_split('/,\s*/', $textValues) as $value) { $option = $page->find('xpath', '//select[@id="' . $field . '"]//option[text()="' . $value . '"]'); $values[] = $option->getAttribute('value'); Loading Loading @@ -157,7 +157,7 @@ class BehatForms extends BehatBase { if (!$select2Input) { throw new \Exception(sprintf('No field "%s" found', $field)); } $select2Input->postValue(['value' => [$value]]); $select2Input->postValue(array('value' => array($value))); $this->getSession()->wait(10000, "(jQuery('#select2-{$field}-results .loading-results').length === 0)"); } /** Loading Loading
htdocs/lib/graph.php +1 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ function get_line_graph_json($data, $colours = null, $cron = false) { function get_graph_colours($data, $colours = null) { // Using colours in rgb format to allow for the use of rgba colours in Chart.js // 10 defaults: Red, Green, Blue, Yellow, Sky blue, Magenta, Orange, Light blue, Grey, Purple $defaultcolours = ['187,35,39','59,140,46','61,132,203','227,171,0','0,74,136','139,62,138','220,109,10','29,183,197','116,116,116','62,35,110']; $defaultcolours = array('187,35,39','59,140,46','61,132,203','227,171,0','0,74,136','139,62,138','220,109,10','29,183,197','116,116,116','62,35,110'); // We try to set colours in this order: // passed in by user overides Loading
htdocs/testing/frameworks/behat/classes/BehatForms.php +2 −2 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class BehatForms extends BehatBase { */ public function iFillInSelect2Field($field, $textValues) { $page = $this->getSession()->getPage(); $values = []; $values = array(); foreach(preg_split('/,\s*/', $textValues) as $value) { $option = $page->find('xpath', '//select[@id="' . $field . '"]//option[text()="' . $value . '"]'); $values[] = $option->getAttribute('value'); Loading Loading @@ -157,7 +157,7 @@ class BehatForms extends BehatBase { if (!$select2Input) { throw new \Exception(sprintf('No field "%s" found', $field)); } $select2Input->postValue(['value' => [$value]]); $select2Input->postValue(array('value' => array($value))); $this->getSession()->wait(10000, "(jQuery('#select2-{$field}-results .loading-results').length === 0)"); } /** Loading