Addressbook - force clear any lingering advanced search when applying a favorite

This commit is contained in:
nathangray 2017-06-13 08:57:11 -06:00
parent 058d1d1762
commit 935f9feb6e

View File

@ -1019,6 +1019,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);
},