Just valid if article body exists.

This commit is contained in:
Martin Edenhofer 2016-01-13 08:15:16 +01:00
parent 7f27fefdb6
commit 63fbc51fb6

View file

@ -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()