context-refactoring: fixed bugs with saved custom queries
Authored by: cboos 2007-11-06
Parent: [r6130]
Child: [r6132]