[open-ils-commits] r11781 - trunk/Open-ILS/web/js/dojo/fieldmapper
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 9 09:37:03 EST 2009
Author: miker
Date: 2009-01-09 09:37:01 -0500 (Fri, 09 Jan 2009)
New Revision: 11781
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
Log:
thinko ... reverse the array_position test
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js 2009-01-09 14:31:24 UTC (rev 11780)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js 2009-01-09 14:37:01 UTC (rev 11781)
@@ -150,7 +150,7 @@
for (var f in fieldmapper.IDL.fmclasses[this.classname].fields) {
var field = fieldmapper.IDL.fmclasses[this.classname].fields[f];
var p = field.array_position;
- if (p > 2) continue;
+ if (p <= 2) continue;
this._fields.push( field.name );
this[field.name]=new Function('n', 'if(arguments.length==1)this.a['+p+']=n;return this.a['+p+'];');
More information about the open-ils-commits
mailing list