?
avatar blueforce
blueforce
1 Mar 2020

Steps to reproduce the issue

  1. Go to System > Manage > Content Security Policy > Options
  2. set the CSP Mode to custom
  3. add directive below
  4. add 2nd directive
  5. try delete all directives...

Expected result

all directives are deleted

Actual result

Actual result: I can delete all, until one directive (first) still remain. I can't delete it.
Bildschirmfoto 2020-02-29 um 16 52 49

System information (as much as possible)

Additional comments

avatar blueforce blueforce - open - 1 Mar 2020
avatar joomla-cms-bot joomla-cms-bot - change - 1 Mar 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Mar 2020
avatar blueforce blueforce - change - 1 Mar 2020
The description was changed
avatar blueforce blueforce - edited - 1 Mar 2020
avatar blueforce blueforce - change - 1 Mar 2020
The description was changed
avatar blueforce blueforce - edited - 1 Mar 2020
avatar blueforce blueforce - change - 1 Mar 2020
The description was changed
avatar blueforce blueforce - edited - 1 Mar 2020
avatar blueforce blueforce - change - 1 Mar 2020
The description was changed
avatar blueforce blueforce - edited - 1 Mar 2020
avatar SharkyKZ
SharkyKZ - comment - 1 Mar 2020

Not a bug. The subform here has min="1" attribute which means it requires at least 1 row.

avatar zero-24
zero-24 - comment - 1 Mar 2020

Yes but should't the content of the last row not be deleted when they hit remove?

avatar zero-24
zero-24 - comment - 1 Mar 2020

I can take a look into dropping min too but i'm under the same impression as @blueforce that when we hit remove the value would be removed but the last entry would still be there.

avatar zero-24
zero-24 - comment - 1 Mar 2020

See here for the removal of min: #28173

avatar joomla-cms-bot joomla-cms-bot - close - 1 Mar 2020
avatar astridx astridx - change - 1 Mar 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-03-01 14:45:54
Closed_By astridx
avatar joomla-cms-bot joomla-cms-bot - change - 1 Mar 2020
Closed_By astridx joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 1 Mar 2020

Set to "closed" on behalf of @astridx by The JTracker Application at issues.joomla.org/joomla-cms/28171

avatar astridx
astridx - comment - 1 Mar 2020

As we have PR. See #28173


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28171.

avatar zero-24
zero-24 - comment - 1 Mar 2020

As said above I personally would expect that the last delete would reset the values to empty, the mention PR just masks the issue.

avatar astridx
astridx - comment - 1 Mar 2020

@blueforce I understood that correctly. Your issue would be solved with the PR #28173, right?

avatar wilsonge wilsonge - change - 1 Mar 2020
Status Closed New
Closed_Date 2020-03-01 14:45:54
Closed_By joomla-cms-bot
avatar wilsonge wilsonge - reopen - 1 Mar 2020
avatar blueforce
blueforce - comment - 2 Mar 2020

@astridx yes... works

avatar blueforce blueforce - change - 2 Mar 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-03-02 16:10:12
Closed_By blueforce
avatar blueforce blueforce - close - 2 Mar 2020

Add a Comment

Login with GitHub to post a comment