From 791aede4cf804a0253b4fa4f4fdf3e9a41f4d58e Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 26 Apr 2013 23:06:35 +0200 Subject: [PATCH] category is required when subscribing --- src/main/webapp/js/controllers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index f30454ac..c8aef247 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -53,6 +53,9 @@ function($scope, FeedService, CategoryService) { }; $scope.save = function() { + if (!$scope.sub.categoryId) { + return; + } FeedService.subscribe($scope.sub, function() { CategoryService.init(); });