[open-ils-commits] r18997 - trunk/Open-ILS/xul/staff_client/server/serial (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 13 16:41:43 EST 2010
Author: senator
Date: 2010-12-13 16:41:37 -0500 (Mon, 13 Dec 2010)
New Revision: 18997
Modified:
trunk/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: trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-12-13 18:21:37 UTC (rev 18996)
+++ trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-12-13 21:41:37 UTC (rev 18997)
@@ -1004,8 +1004,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