Broker_TradeCooldowns

55 - Text Display for Inscription/Tailoring/Enchanting

This is the error I receive when trying to display the cooldown for Scroll of Wisdom, Imperial Cloth, or Sha Crystal:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
8x Broker_TradeCooldowns\Broker_TradeCooldowns-r20121101234205.lua:83: attempt to concatenate local "text" (a boolean value)
Broker_TradeCooldowns\Broker_TradeCooldowns-r20121101234205.lua:83: in function <Broker_TradeCooldowns\Broker_TradeCooldowns.lua:83>
Broker_TradeCooldowns\Broker_TradeCooldowns-r20121101234205.lua:567: in function "UpdateDataText"
Broker_TradeCooldowns\Broker_TradeCooldowns-r20121101234205.lua:618: in function <Broker_TradeCooldowns\Broker_TradeCooldowns.lua:578>
(tail call): ?
<in C code>
<string>:"safecall Dispatcher[1]":9: in function <string>:"safecall Dispatcher[1]":5
(tail call): ?
Ace3-r1066\AceAddon-3.0\AceAddon-3.0-11.lua:543: in function "EnableAddon"
Ace3-r1066\AceAddon-3.0\AceAddon-3.0-11.lua:636: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:621>
<in C code>
FrameXML\UIParent.lua:299: in function "UIParentLoadAddOn"
FrameXML\UIParent.lua:322: in function "CombatLog_LoadUI"
FrameXML\UIParent.lua:692: in function <FrameXML\UIParent.lua:657>

Locals:
nil
User When Change
err0rak Nov 23, 2012 at 00:14 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Speedwaystar Speedwaystar May 05, 2013 at 17:42 UTC - 0 likes

    Here's my fix:

    in Broker_TradeCooldowns.lua, find the function private.UpdateDataText(), and change the line which reads:

    launcher.text = _G.SUBTITLE_FORMAT:format(Yellow(COOLDOWN_SPELL_MAP[spell_id]), time_text)
    

    to

    launcher.text = _G.SUBTITLE_FORMAT:format(Yellow(private.CooldownDisplayName(spell_id)), time_text)
    

    this sanity check is necessary because COOLDOWN_SPELL_MAP[spell_id] may contain either a boolean value, or the name of the spell itself.

    Last edited May 05, 2013 by Speedwaystar
  • 1 comment

Facts

Reported
Nov 23, 2012
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees