From ed43f07811f1e0c5a435a1857e6874235b11c468 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 13 Jun 2017 08:57:11 -0600 Subject: [PATCH] Addressbook - force clear any lingering advanced search when applying a favorite --- addressbook/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index eb08c317b2..9c00fbd644 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -978,6 +978,13 @@ app.classes.addressbook = AppJS.extend( } } } + + // Make sure advanced search is false if not set, this clears any + // currently set advanced search + if(typeof state.state.advanced_search === 'undefined') + { + state.state.advanced_search = false; + } return this._super.apply(this, arguments); },