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){
|
||||
// Primary field
|
||||
if (this.isPrimaryField(field)){
|
||||
if (!this.isEditableField()){
|
||||
if (!this.isEditableField(field)){
|
||||
throw ('Primary field ' + field + ' cannot be changed through ' +
|
||||
'setField');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue