Fix child item duplication (UI-only) when dragging between parents
This commit is contained in:
		
					parent
					
						
							
								61fa874572
							
						
					
				
			
			
				commit
				
					
						331a7cef7e
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1939,7 +1939,7 @@ Zotero.Item.prototype.save = function() {
 | 
			
		|||
					Zotero.Notifier.trigger('modify', 'item', newSourceItem.id, newSourceItemNotifierData);
 | 
			
		||||
				}
 | 
			
		||||
				
 | 
			
		||||
				var oldSourceItemKey = this._previousData.parent;
 | 
			
		||||
				var oldSourceItemKey = this._previousData.parentItem;
 | 
			
		||||
				if (oldSourceItemKey) {
 | 
			
		||||
					var oldSourceItem = Zotero.Items.getByLibraryAndKey(this.libraryID, oldSourceItemKey);
 | 
			
		||||
					if (oldSourceItem) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue