BetterBags

BetterBags

1M Downloads

bad argument #2 to 'IsItemAllowedInBankType' when moving items between bank and character

Daeadin opened this issue ยท 3 comments

commented

Addon Version

v0.3.11

World of Warcraft Version

Retail

Describe the bug

Message: Interface/AddOns/BetterBags/frames/item.lua:306: bad argument #2 to 'IsItemAllowedInBankType' (Usage: local isItemAllowedInBankType = C_Bank.IsItemAllowedInBankType(bankType, itemLocation))
Time: Tue Sep 3 20:37:55 2024
Count: 1
Stack: Interface/AddOns/BetterBags/frames/item.lua:306: bad argument #2 to 'IsItemAllowedInBankType' (Usage: local isItemAllowedInBankType = C_Bank.IsItemAllowedInBankType(bankType, itemLocation))
[string "@Interface/AddOns/BetterBags/frames/item.lua"]:306: in function GetItemContextMatchResult' [string "@Interface/AddOns/Blizzard_ItemButton/Mainline/ItemButtonTemplate.lua"]:462: in function UpdateItemContextMatching'
[string "@Interface/AddOns/Blizzard_ItemButton/Mainline/ItemButtonTemplate.lua"]:420: in function <.../Blizzard_ItemButton/Mainline/ItemButtonTemplate.lua:419>
[string "=[C]"]: ?
[string "@Interface/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...e/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua:143>
[string "=[C]"]: ?
[string "@Interface/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function <...e/AddOns/Blizzard_SharedXMLBase/CallbackRegistry.lua:125>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/BetterBags/frames/bag.lua"]:425: in function SwitchToAccountBank' [string "@Interface/AddOns/BetterBags/frames/bag.lua"]:647: in function clickHandler'
[string "@Interface/AddOns/BetterBags/frames/tabs.lua"]:193: in function <Interface/AddOns/BetterBags/frames/tabs.lua:187>
[string "@Interface/AddOns/BetterBags/core/context.lua"]:164: in function <Interface/AddOns/BetterBags/core/context.lua:162>

Locals: item = BetterBagsItemButton214Decorationdefault {
IconOverlay = Texture {
}
AugmentBorderAnim = AnimationGroup {
}
showMatchHighlight = true
icon = BetterBagsItemButton214DecorationdefaultIconTexture {
}
isExtended = false
count = 29
HighlightTexture = Texture {
}
IconQuestTexture = BetterBagsItemButton214DecorationdefaultIconQuestTexture {
}
hasItem = 1
ProfessionQualityOverlay = Texture {
}
matchesSearch = true
PushedTexture = Texture {
}
bagID = 5
emptyBackgroundAtlas = "bags-item-slot64"
timeSinceUpgradeCheck = 0
Count = BetterBagsItemButton214DecorationdefaultCount {
}
flash = Texture {
}
searchOverlay = BetterBagsItemButton214DecorationdefaultSearchOverlay {
}
isProfessionItem = true
itemContextMatchResult = 1
IconTexture = BetterBagsItemButton214DecorationdefaultIconTexture {
}
IconOverlay2 = Texture {
}
ItemSlotBackground = Texture {
}
minDisplayCount = 1
flashAnim = AnimationGroup {
}
newitemglowAnim = AnimationGroup {
}
JunkIcon = Texture {
}
ExtendedSlot = Texture {
}
BattlepayItemTexture = Texture {
}
NewItemTexture = Texture {
}
isCraftedItem = false
AugmentBorderAnimTexture = Texture {
}
UpgradeIcon = Texture {
}
NormalTexture = BetterBagsItemButton214DecorationdefaultNormalTexture {
}
IconBorder = Texture {
}
Cooldown = BetterBagsItemButton214DecorationdefaultCooldown {
}
ItemContextOverlay = Texture {
}
BagIndicator = Texture {
}
Stock = BetterBagsItemButton214DecorationdefaultStock {
}
readable = false
}
itemLocation =

{
slotIndex = 1
bagID = 5
}
result = 3
const =
{
BANK_ONLY_BAGS =
{
}
BAG_KIND =
{
}
modules =
{
}
BANK_TAB =
{
}
BANK_BAGS =
{
}
BINDING_SCOPE =
{
}
BANK_ONLY_BAGS_LIST =
{
}
BAG_SUBTYPES =
{
}
DATABASE_DEFAULTS =
{
}
SECTION_SORT_TYPE =
{
}
baseName = "BetterBags"
INVENTORY_TYPE_TO_INVENTORY_SLOTS =
{
}
EQUIPMENT_SLOTS =
{
}
TRADESKILL_MAP =
{
}
name = "BetterBags_Constants"
BRIEF_EXPANSION_MAP =
{
}
orderedModules =
{
}
EXPANSION_MAP =
{
}
defaultModuleState = true
OFFSETS =
{
}
ITEM_QUALITY_COLOR =
{
}
BINDING_MAP =
{
}
ITEM_QUALITY_HIGHLIGHT =
{
}
BAG_SUBTYPE_TO_QUALITY =
{
}
ITEM_QUALITY_TO_ENUM =

Steps to reproduce

Unfortunately, I don't have exact steps, but I was moving items between reagent bank and character, and then character and warband reagent tab.

commented

should be fixed with #679

commented

right on! thank you

commented

fixed in v0.3.12