Fixed that a cross-project custom query is not remembered inside project (#9738).
Authored by: jplang 2011-12-07
Parent: [r8112]
Child: [r8114]