Improve custom column autosort logic

Fixes #2425
This commit is contained in:
emanuele-f 2019-02-27 12:33:55 +01:00
parent 2fd5a75b6a
commit 45e0038b45
3 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,9 @@ end
-- ###########################################
function custom_column_utils.updateCustomColumn()
if not isEmptyString(_GET["custom_column"]) then
local _, current_column = custom_column_utils.getCustomColumnName()
if not isEmptyString(_GET["custom_column"]) and (_GET["custom_column"] ~= current_column) then
if setCustomColumnName(_GET["custom_column"]) then
local custom_column_key, custom_column_format = custom_column_utils.label2criteriakey(_GET["custom_column"])