[open-ils-commits] r9710 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 27 17:27:09 EDT 2008
Author: erickson
Date: 2008-05-27 17:27:05 -0400 (Tue, 27 May 2008)
New Revision: 9710
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js
Log:
if ID is chosen, use that. if ID is invalid, drop it
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js 2008-05-27 01:41:37 UTC (rev 9709)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js 2008-05-27 21:27:05 UTC (rev 9710)
@@ -37,6 +37,10 @@
function doSearch(fields) {
var itemList = [];
+ if(!isNaN(fields.id))
+ fields = {id:fields.id};
+ else
+ delete fields.id;
fieldmapper.standardRequest(
['open-ils.acq', 'open-ils.acq.purchase_order.search'],
More information about the open-ils-commits
mailing list