FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Flutterflow CMS sets a enum field with the enum code and not the string of the enum #2963

Closed Nic61 closed 5 months ago

Nic61 commented 5 months ago

Has your issue been reported?

Current Behavior

Previously FF CMS would show a list of choices for an enum field on a collection. On choice it would set that field to the enum string. You can then build logic with this in FF (e.g. conditional visilibity if a document has a certain enum set). However for some weird reason it now sets the enum to its unique identifiable code (at least I presume that that's what it is) and not the string anymore. It broke my live app for quite some time, before O noticed.

Expected Behavior

Set the enum to the string value

Steps to Reproduce

  1. Create a project
  2. Connect firebase
  3. Create an enum
  4. Create a collection with a field set to an enum
  5. Open FF CMS and create/modify a document and set the field to one of the enum values
  6. You'll see it sets it as not its value but as a weird code.

Reproducible from Blank

Bug Report Code (Required)

NA

Context

Use enums in my project

Visual documentation

na

Additional Info

No response

Environment

- FlutterFlow version: 4.1.53
- Platform: Web
- Browser name and version:
- Operating system and version affected:

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

ignalauret commented 5 months ago

Hey @Nic61 thanks for your report. This has already been addressed and the fix will be deployed on next release. Here the thread where it's being followed: https://github.com/FlutterFlow/flutterflow-issues/issues/2546
Have a great day!

Nic61 commented 5 months ago

Thanks @ignalauret