Missing argument in setField() prevented changing primary fields
This commit is contained in:
parent
93c2b8c2ee
commit
f9b4aab08d
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue