Commit 813d4942 authored by Jérome Perrin's avatar Jérome Perrin

core: fix error when submitting "View Diff" dialog

This action was working fine the first time displayed, but clicking
again on "View Diff" button was causing an IndexError: list index out of range
when used on one document.

This was because in this case list_selection_name exists in REQUEST, but
is an empty string. Instead of checking that this selection name is not
None to detect if we are in module mode or in document mode, check that
its true-ish to also tolerate an empty string.
parent e7c4e387
Pipeline #11976 failed with stage
in 0 seconds