webui: certificate search - select search attribute only when defined

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-05-13 13:30:13 +02:00
parent 408457ce53
commit 05a917eb17

View File

@ -1234,7 +1234,7 @@ IPA.cert.search_facet = function(spec) {
that.show = function() {
that.search_facet_show();
if (that.search_option) {
if (that.search_option && that.state.search_option) {
that.search_option.val(that.state.search_option);
}
};