commit f9b4aab08d685b797189645ca10c7069572f9d57
parent 93c2b8c2ee8b7f14ad9c9050ae247d45f3175b8b
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 22 Mar 2006 18:16:29 +0000
Missing argument in setField() prevented changing primary fields
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/chromeFiles/content/scholar/data_access.js b/chrome/chromeFiles/content/scholar/data_access.js
@@ -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');
}