botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

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

Closed marcdion closed 1 year ago

marcdion commented 2 years ago

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):

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

marcdion commented 2 years ago

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

kubica commented 1 year ago

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

davidvitora commented 1 year ago

Duplicate of https://github.com/botpress/v12/issues/1627