#6685 closed defect (fixed)

Type /clear command in gamesetup - error - caption does not exist

Reported by: Norse_Harold Owned by: trompetin17
Priority: Should Have Milestone: Alpha 27
Component: UI – Game setup Keywords: clear, chat, caption
Cc: Patch:

Description (last modified by Norse_Harold)

Start hosting a multiplayer game. At the map selection screen (gamesetup), type the following in the chat input box and press enter.

/clear

The chat text is not cleared, and this warning is shown at the top of the screen and in terminal output.

ERROR: Property 'caption' does not exist!
ERROR: Errors executing script event "Press"
ERROR: JavaScript error: gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatMessagesPanel.js line 46
invalid property id
  clearChatMessages@gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatMessagesPanel.js:46:3
  executeNetworkCommand@gui/common/network.js:184:29
  onPress@gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatInputPanel.js:47:8

Change History (2)

comment:1 by Norse_Harold, 16 months ago

Description: modified (diff)

comment:2 by trompetin17, 16 months ago

Owner: set to trompetin17
Resolution: fixed
Status: newclosed

In 27431:

Fix /clear command in gamesetup

Patch by: @Norse_Harold

Reviewed by: @trompetin17
Differential Revision: D4885
Fixes: #6685

Note: See TracTickets for help on using tickets.