bug creation doc

This commit is contained in:
2020-05-06 14:43:02 +02:00
parent a0678fd949
commit 44986cd5f4
3 changed files with 22 additions and 13 deletions

View File

@@ -123,13 +123,14 @@ def doc_edit(request):
for param, db_value in doc.items():
if param in request.params and request.params[param] != db_value:
new_values[param] = request.params[param]
if new_values:
update_doc(request, doc_id, intitule, texte, theme)
if new_values:
import pdb;pdb.set_trace()
update_doc(request, doc_id, new_values)
if doc_id != '0':
return HTTPFound(location=request.route_url('doc_view', doc_id=doc_id))
else:
return HTTPFound(location=request.route_url('archives',theme=theme))
return HTTPFound(location=request.route_url('archives',theme=request.params['theme']))
if 'form.deleted' in request.params:
if doc_id != '0':