From 63fbc51fb6da63822937ae8a035edf2c897cf630 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 13 Jan 2016 08:15:16 +0100 Subject: [PATCH] Just valid if article body exists. --- app/assets/javascripts/app/controllers/ticket_zoom.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index f465983a2..70551860b 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -568,7 +568,7 @@ class App.TicketZoom extends App.Controller console.log('ticket validateion ok') articleParams = @articleNew.params() - if articleParams + if articleParams && articleParams.body article = new App.TicketArticle article.load(articleParams) errors = article.validate()