Skip to content

Commit

Permalink
fix bug on compose message (preview broken if "all categories" was se…
Browse files Browse the repository at this point in the history
…lected)
  • Loading branch information
cbellone committed May 20, 2018
1 parent df5d933 commit b343912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/resources/js/admin/service/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
return $http['get']('/admin/api/event/additional-field/templates').error(HttpErrorHandler.handle);
},
getMessagesPreview: function(eventName, categoryId, messages) {
var queryString = angular.isDefined(categoryId) && categoryId !== "" ? '?categoryId='+categoryId : '';
var queryString = angular.isNumber(categoryId) ? '?categoryId='+categoryId : '';
return $http['post']('/admin/api/events/'+eventName+'/messages/preview'+queryString, messages).error(HttpErrorHandler.handle);
},
sendMessages: function(eventName, categoryId, messages) {
Expand Down

0 comments on commit b343912

Please sign in to comment.