Mercurial > libervia-web
changeset 970:bc28b9068f91
page(tickets/new): refuse request if title is not set
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 09 Nov 2017 08:02:49 +0100 |
parents | 8943ee1cf3d7 |
children | 6e966ef8d69f |
files | src/pages/tickets/new/page_meta.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pages/tickets/new/page_meta.py Thu Nov 09 08:02:49 2017 +0100 +++ b/src/pages/tickets/new/page_meta.py Thu Nov 09 08:02:49 2017 +0100 @@ -30,6 +30,8 @@ service = data['service'] node = data['node'] posted_data = self.getAllPostedData(request) + if not posted_data['title']: + self.pageError(request, C.HTTP_BAD_REQUEST) profile = self.getProfile(request) yield self.host.bridge.ticketsSet(service.full(), node, posted_data, u'', u'', {}, profile) # we don't want to redirect to creation page on success, but to tickets list