Skip to content

Commit

Permalink
Merge pull request #32 from xaun/bug/account-comparison
Browse files Browse the repository at this point in the history
Fix for account comparison - single organization
  • Loading branch information
cesar-tonnoir committed Nov 11, 2015
2 parents cf3e3f2 + 74c98da commit 1ca6676
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.controller('WidgetAccountsComparisonCtrl', ($scope, $q, ChartFormatterSvc
value: false,
onChangeCallback: $scope.multiCompanyComparisonOnChange
}]
if angular.isDefined w.metadata.comparison_mode
if angular.isDefined(w.metadata.comparison_mode) && w.metadata.organization_ids.length > 1
angular.merge $scope.comparisonModeOptions, w.metadata.comparison_mode
$scope.movedAccount = {}

Expand Down

0 comments on commit 1ca6676

Please sign in to comment.