fix if condition when no order specified

Merged Laurent Heirendt requested to merge (removed):fix-if into latest

Merge request reports