Skip to content

Commit

Permalink
MK BI backend: Now prints an error message when trying to use with no…
Browse files Browse the repository at this point in the history
…n aggregation objects
  • Loading branch information
LarsMichelsen committed May 21, 2016
1 parent ef85096 commit c39a179
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,4 +1,8 @@
1.9b8
Core:
* MK BI backend: Now prints an error message when trying to use it with
objects that are not aggregations.

Frontend:
* FIX: Improved error handling in case of modifying objects which
backends report issues
Expand Down
2 changes: 1 addition & 1 deletion share/server/core/classes/GlobalBackendmkbi.php
Expand Up @@ -286,7 +286,7 @@ private function getAggrCounts($aggr) {
*/
public function getObjects($type, $name1Pattern = '', $name2Pattern = '') {
if($type !== 'aggr')
return array();
throw new BackendException(l('This backend only supports "Aggregation" objects.'));

$result = Array();
foreach($this->getAggregationNames() AS $id => $name) {
Expand Down

0 comments on commit c39a179

Please sign in to comment.