enhanced update doc ending
This commit is contained in:
@@ -178,7 +178,10 @@ def doc_edit(request):
|
||||
|
||||
if len(intitule) > 0 and len(texte) > 0:
|
||||
update_doc(request, doc_id, intitule, texte, theme)
|
||||
return HTTPFound(location=request.route_url('doc_list'))
|
||||
if doc_id <> '0':
|
||||
return HTTPFound(location=request.route_url('doc_view', doc_id=doc_id))
|
||||
else:
|
||||
return HTTPFound(location=request.route_url('doc_list'))
|
||||
else:
|
||||
message = "Veuillez saisir un intitule et un texte."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user