From: phasefx Date: Wed, 13 Jul 2005 02:09:55 +0000 (+0000) Subject: bug with empty string search values X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5360222ac49c9d2f60d6d6a734548b748020e85f;p=Evergreen.git bug with empty string search values git-svn-id: svn://svn.open-ils.org/ILS/trunk@1162 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_form.js b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_form.js index e52dfd846a..8984590326 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_form.js +++ b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_form.js @@ -52,4 +52,9 @@ function patron_search_form_textbox_handler(doc,textbox,search_hash) { var group = textbox.getAttribute('group'); var value = textbox.value; search_hash[ field ] = { 'value' : value, 'group' : group }; + try { + if (value==''||value==null||value==undefined) delete(search_hash[ field ]); + } catch(E) { + sdump('D_ERROR',E); + } }