Browse Source

Fix task Area selction after removing one

master
tr4ck3ur des JM2L 9 years ago
parent
commit
46c626c96f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      jm2l/views.py

+ 1
- 1
jm2l/views.py View File

@@ -430,7 +430,7 @@ def tasks(request):
DBSession.add(Task)
DBSession.flush()
return HTTPFound(location=request.route_url('list_task')+"#"+slugify(Task.area.name))
return {'form':form, 'area':slugify(Areas[Task.area_uid-1].name)}
return {'form':form, 'area':slugify(Task.area.name)}

@view_config(route_name='handle_pole', renderer='jm2l:templates/Staff/pole.mako')
def tasks_area(request):


Loading…
Cancel
Save