commit 15d28014ed7d89aa34c39808880b65da52afd0e1
parent 7fa931425afdc0fb9e99281cc148cf710b7ea060
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 10 Oct 2014 04:34:52 -0400
Fix creator type assignment in item box
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml
@@ -476,6 +476,7 @@
}
var creatorTypes = Zotero.CreatorTypes.getTypesForItemType(this.item.itemTypeID);
+
var localized = {};
for (var i=0; i<creatorTypes.length; i++) {
localized[creatorTypes[i]['name']]
@@ -531,7 +532,7 @@
}
for (var i = 0; i < max; i++) {
let data = this.item.getCreator(i);
- this.addCreatorRow(data, data.creatorType);
+ this.addCreatorRow(data, data.creatorTypeID);
// Display "+" button on all but last row
if (i == max - 2) {
@@ -553,7 +554,7 @@
this._displayAllCreators = true;
if (this._addCreatorRow) {
- this.addCreatorRow(false, this.item.getCreator(max-1).creatorType, true);
+ this.addCreatorRow(false, this.item.getCreator(max-1).creatorTypeID, true);
this._addCreatorRow = false;
this.disableCreatorAddButtons();
}