identifier is class based
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 May 2008 21:44:00 +0000 (21:44 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 May 2008 21:44:00 +0000 (21:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9678 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js

index 776b5db..131d601 100644 (file)
@@ -144,7 +144,6 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){
                        constructor : function () {
                                if (!this.a) this.a = [];
                                this.classname = this.declaredClass;
-                               this.Identifier = 'id';
                                this._fields = fmclasses[this.classname];
                                for( var pos = 0; pos <  this._fields.length; pos++ ) {
                                        var p = parseInt(pos) + 3;
@@ -154,6 +153,7 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){
                        }
                });
                fieldmapper[cl] = window[cl]; // alias into place
+               fieldmapper[cl].Identifier = 'id'; // alias into place
 
        }