bug #1835904 [GUI] Back link after a SQL error forgets the query