Skip to content
Snippets Groups Projects
Commit 82577506 authored by Alice Heaton's avatar Alice Heaton :speech_balloon:
Browse files

Don't fail if there is no action.

parent c7f4acc6
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ def process_items(request):
action = request.POST.get('action')
if action == DELETE_COMMAND:
delete_items(request, selected)
elif action.startswith(ADD_CATEGORY_PREFIX):
elif action and action.startswith(ADD_CATEGORY_PREFIX):
category = action[len(ADD_CATEGORY_PREFIX):]
add_items_categories(request, selected, category)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment