botpress icon indicating copy to clipboard operation
botpress copied to clipboard

event.payload.payload uppercase for single choices create via API

Open marcdion opened this issue 3 years ago • 1 comments

Describe the bug The value stored in event.payload.payload is uppercase when coming from a single choice created in an action.

To Reproduce Steps to reproduce the behavior:

  1. Send a single-choice from an action to the chat with some values.
  2. When a user selects a value in the single-choice, look in the event.
  3. Look at event.payload.payload
  4. The value will always be uppercase even though the data source used to create the single-choice in the action is not uppercase.

Expected behavior The payload should be case-sensitive.

Environment (please complete the following information):

  • Botpress Version 12.26.12

Additional information The issue happens with single-choices but not when creating a drop-down content type directly

marcdion avatar Apr 22 '22 16:04 marcdion

Seems to be related to: https://github.com/botpress/botpress/issues/11677

marcdion avatar Apr 22 '22 16:04 marcdion

Did you found out whether this behavior is intended? I recently recognized the same issue.

kubica avatar Oct 18 '22 23:10 kubica

Duplicate of https://github.com/botpress/botpress/issues/11677

davidvitora avatar Nov 02 '22 22:11 davidvitora