Doesn't save boolean value when other field is empty

Created on 27 December 2023, 11 months ago
Updated 11 January 2024, 11 months ago

Problem

Have a custom field with two items: boolean and url. When saving with just boolean item checked, url item is left empty, nothing is saved. Expected result is that boolean item value is saved while url is left empty.
Tried to have textfield item instead of url, or have several items, with or without `Check empty?` config, still result is the same - boolean field is only saved when at least one other field is not empty. Looks like conditions in `CustomItem::isEmpty()` method should be adjusted.

Steps to reproduce

  1. On node create custom field with boolean and url items. Custom field is not a `Required field`.
  2. Create/edit node and check the boolean part of custom field, but leave url empty.
  3. Save the node.
  4. Edit same node and check custom field value. The checkbox for boolean item is unchecked and no record in the database.
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡±πŸ‡ΉLithuania k-l

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024