API 100019 changes

willneedit [05-22-17 - 19:19]
API 100019 changes
Filename
InventoryManager.lua
InventoryManager.txt
Modules/Banking.lua
diff --git a/InventoryManager.lua b/InventoryManager.lua
index e7695d3..85df087 100644
--- a/InventoryManager.lua
+++ b/InventoryManager.lua
@@ -96,7 +96,7 @@ function InventoryManager:GetItemData(slotId, _inv)
 		return nil
 	end

-	local itemLink = inv[slotId].lnk
+	local itemLink = GetItemLink(self.currentBagType, slotId)

 	data.bagId = self.currentBagType
 	data.slotId = slotId
diff --git a/InventoryManager.txt b/InventoryManager.txt
index f38a969..21252a4 100644
--- a/InventoryManager.txt
+++ b/InventoryManager.txt
@@ -1,5 +1,5 @@
 ## Title: InventoryManager
-## APIVersion: 100018
+## APIVersion: 100019
 ## OptionalDependsOn: LibAddonMenu-2.0
 ## SavedVariables: IMSavedVars
 ## Version: 1.3.1
diff --git a/Modules/Banking.lua b/Modules/Banking.lua
index b5fb1f3..44de1e0 100644
--- a/Modules/Banking.lua
+++ b/Modules/Banking.lua
@@ -211,6 +211,7 @@ function ProcessMove(move)
 	local qtyToMove = move["count"]
 	local action = (bagIdFrom == BAG_BACKPACK and InventoryManager.ACTION_STASH) or InventoryManager.ACTION_RETRIEVE

+	InventoryManager.currentBagType = bagIdFrom
 	local data = InventoryManager:GetItemData(slotIdFrom, SHARED_INVENTORY:GetOrCreateBagCache(bagIdFrom))
 	InventoryManager:ReportAction(data, false, action)