[open-ils-commits] r18998 - branches/rel_2_0/Open-ILS/xul/staff_client/server/serial (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 13 16:42:39 EST 2010
Author: senator
Date: 2010-12-13 16:42:33 -0500 (Mon, 13 Dec 2010)
New Revision: 18998
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js
Log:
Serials: simple bug in batch receive. Certain field values got treated
like strings sometimes when they weren't. No more.
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-12-13 21:41:37 UTC (rev 18997)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-12-13 21:42:33 UTC (rev 18998)
@@ -924,8 +924,9 @@
["price", "location", "circ_modifier"].forEach(
function(field) {
- var value = self._row_field_value(id, field).trim();
- if (value) unit[field](value);
+ var value = self._row_field_value(id, field);
+ if (value)
+ unit[field](value.trim ? value.trim() : value);
}
);
More information about the open-ils-commits
mailing list