?
avatar astridx
astridx
31 Jan 2020

Steps to reproduce the issue

  1. Create a custom field of type subfield with one subfield of type text and set it as required.
    Articles  Edit Field   test   Administration(1)
  2. Create an article and do not fill text in the in step one created custom field.

Expected result

As the field is required the article should not be saved.

Actual result

The article is saved.

Articles  Edit   test   Administration

avatar astridx astridx - open - 31 Jan 2020
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Jan 2020
avatar Fedik
Fedik - comment - 31 Jan 2020

Technically it have a value, that why it saved.

To make it work as you expected:
If the subform are non multiple, then one of its field should be set to "required".

avatar astridx astridx - change - 31 Jan 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-01-31 18:39:42
Closed_By astridx
avatar astridx
astridx - comment - 31 Jan 2020

OK. Thanks for the answer. Then you don't see it as a bug.
How do others see it? Am I the only one who expects different behavior? I would disable the require option in the subfield field or switch it to invisible.

If I'm the only one who sees an error here, I'll close the issue.

avatar astridx astridx - close - 31 Jan 2020
avatar Fedik
Fedik - comment - 31 Jan 2020

yeah, it may be confusing,
removing require option for this field sounds as not a bad idea

avatar astridx
astridx - comment - 31 Jan 2020

OK. Then I open it again so that it is not forgotten.

avatar astridx astridx - change - 31 Jan 2020
Status Closed New
Closed_Date 2020-01-31 18:39:42
Closed_By astridx
avatar astridx astridx - reopen - 31 Jan 2020
avatar astridx astridx - change - 1 Feb 2020
Title
[4.0] Subfield - requiere
[4.0] Subfield - require
avatar astridx astridx - edited - 1 Feb 2020
avatar astridx
astridx - comment - 1 Feb 2020

See #27757

avatar astridx astridx - change - 1 Feb 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-02-01 12:03:07
Closed_By astridx
avatar astridx astridx - close - 1 Feb 2020

Add a Comment

Login with GitHub to post a comment