bug fix for service registration
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2130 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
473955b503
commit
24206693f9
1 changed files with 3 additions and 3 deletions
|
@ -260,6 +260,9 @@ class ServiceView(BaseView):
|
|||
regs.validate(clientName, [self.context], [number])
|
||||
if regs.severity > 0:
|
||||
return True
|
||||
if newClient:
|
||||
clientName = manager.addClient(client)
|
||||
self.setClientName(clientName)
|
||||
if 'submit_register' in form and number > 0:
|
||||
regs.register([self.context], numbers=[number])
|
||||
self.showCheckoutButton = True
|
||||
|
@ -268,9 +271,6 @@ class ServiceView(BaseView):
|
|||
number = 0
|
||||
elif 'submit_checkout' in form:
|
||||
nextUrl = self.getSchemaUrl()
|
||||
if newClient:
|
||||
clientName = manager.addClient(client)
|
||||
self.setClientName(clientName)
|
||||
if nextUrl:
|
||||
self.request.response.redirect(nextUrl)
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue