Skip to content

Conditionals on Field Not Persisting Correctly #6008

Description

@daylightstudio

Bug description

I wanted to setup multiple conditions on a field so that it would not appear on two different templates. I added the additional condition but it wound up overwriting the previous conditions value and did not add the additional condition. This explains it better:

How to reproduce

  1. Went to fields sets to edit
  2. Clicked on Conditionals for the field I wanted to edit
  3. Added the extra condition and clicked Finish
  4. Clicked saved on next screen
  5. Went back to Conditionals and it overwrote the value previous value with the new value and didn't persist my new condition

This link best explains the steps.

Logs

No response

Versions

Statamic 3.2.39 Pro
Laravel 8.80.0
PHP 7.4.21
aryehraber/statamic-captcha 1.8.0
doublethreedigital/duplicator 2.2.0
rias/statamic-redirect 2.0.0
spatie/statamic-responsive-images 2.10.1
statamic/seo-pro 2.3.2

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions