Missing argument in setField() prevented changing primary fields

This commit is contained in:
Dan Stillman 2006-03-22 18:16:29 +00:00
parent 93c2b8c2ee
commit f9b4aab08d

View file

@ -243,7 +243,7 @@ Scholar.Object.prototype.getField = function(field){
Scholar.Object.prototype.setField = function(field, value, loadIn){ Scholar.Object.prototype.setField = function(field, value, loadIn){
// Primary field // Primary field
if (this.isPrimaryField(field)){ if (this.isPrimaryField(field)){
if (!this.isEditableField()){ if (!this.isEditableField(field)){
throw ('Primary field ' + field + ' cannot be changed through ' + throw ('Primary field ' + field + ' cannot be changed through ' +
'setField'); 'setField');
} }