We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d3bdb0 + 3ccbede commit d71c4e5Copy full SHA for d71c4e5
classes/Visualizer/Source/Csv/Remote.php
@@ -97,7 +97,7 @@ private function _repopulate( $chart_id ) {
97
* @return array The re populated array of data or old one.
98
*/
99
public function repopulateData( $data, $chart_id ) {
100
- return $this->_repopulate( $chart_id ) ? $this->_data : $data;
+ return array_key_exists( 'data', $data ) ? $data['data'] : $data;
101
}
102
103
/**
@@ -111,7 +111,7 @@ public function repopulateData( $data, $chart_id ) {
111
* @return array The re populated array of series or old one.
112
113
public function repopulateSeries( $series, $chart_id ) {
114
- return $this->_repopulate( $chart_id ) ? $this->_series : $series;
+ return $series;
115
116
117
0 commit comments