Fix creator overwrite using move option on open field
https://forums.zotero.org/discussion/76423/bug-when-moving-authors-to-top-in-beta
This commit is contained in:
parent
a11adb737e
commit
9d564f022d
1 changed files with 1 additions and 2 deletions
|
@ -2173,6 +2173,7 @@
|
|||
<parameter name="dir"/>
|
||||
<body><![CDATA[
|
||||
return Zotero.spawn(function* () {
|
||||
yield this.blurOpenField();
|
||||
if (index == 0 && dir == 'up') {
|
||||
Zotero.debug("Can't move up creator 0");
|
||||
return;
|
||||
|
@ -2212,8 +2213,6 @@
|
|||
this.item.setCreator(index, otherCreator);
|
||||
}
|
||||
if (this.saveOnEdit) {
|
||||
// See note in transformText()
|
||||
yield this.blurOpenField();
|
||||
return this.item.saveTx();
|
||||
}
|
||||
}, this);
|
||||
|
|
Loading…
Reference in a new issue