diff --git a/omega-web/src/omega/controllers/switch_profile.coffee b/omega-web/src/omega/controllers/switch_profile.coffee index 26a7494..4e258b2 100644 --- a/omega-web/src/omega/controllers/switch_profile.coffee +++ b/omega-web/src/omega/controllers/switch_profile.coffee @@ -5,7 +5,10 @@ angular.module('omega').controller 'SwitchProfileCtrl', ($scope, $rootScope, $scope.ruleListFormats = OmegaPac.Profiles.ruleListFormats exportRuleList = -> - text = OmegaPac.RuleList.Switchy.compose($scope.profile) + text = OmegaPac.RuleList.Switchy.compose( + rules: $scope.profile.rules + defaultProfileName: $scope.attachedOptions.defaultProfileName + ) eol = '\r\n' info = '\n'