J4 Issue ?
avatar cinemarene
cinemarene
18 Dec 2019

Joomla 3.9.14

<field
                name="test_fields"
                type="subform"
                label=""
                multiple="true"
                buttons="add,remove"
                groupByFieldset="true"
                min="1"
                max="5">
            <form>
                <fieldset name="section1">
                    <field
                            name="test_field"
                            type="text"
                            label="TESTFIELD1"
                            default=""
                    />
                </fieldset>
            </form>
        </field>

Go to the form.
Now there is one row with key 0.
Add one row with "+" button.
Now there are two rows with 0 and 1.
Remove first row with key 0 over button "-".
Now there are one row with key 1.
Add one row with "+" button.
Now there are two rows with key 1 and 1.

double_field_array_keys

avatar cinemarene cinemarene - open - 18 Dec 2019
avatar joomla-cms-bot joomla-cms-bot - change - 18 Dec 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Dec 2019
avatar cinemarene cinemarene - change - 18 Dec 2019
The description was changed
avatar cinemarene cinemarene - edited - 18 Dec 2019
avatar ReLater
ReLater - comment - 18 Dec 2019

Confirmed.

Addition: If you save then 1 row is lost.

avatar ReLater
ReLater - comment - 18 Dec 2019

Same issue in Joomla 3.9.13.

Side effect: If there's an editor field in the subform it's not loaded correctly if you follow the instructions above.

avatar Fedik
Fedik - comment - 18 Dec 2019

can someone check 3.9.0 and older, I suspect this #22757 a reason

avatar ReLater
ReLater - comment - 18 Dec 2019

No issue with 3.9.0.

Issue confirmed with 3.9.1.

Tested with subform in "Users Options" > "Email Domain Options"

avatar ReLater
ReLater - comment - 18 Dec 2019

Corrected my last post (Joomla versions).

avatar ReLater
ReLater - comment - 19 Dec 2019

Pinging @continga for the sake of completeness

avatar Fedik
Fedik - comment - 22 Dec 2019

please test #27334

avatar joomla-cms-bot joomla-cms-bot - change - 22 Dec 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-12-22 11:11:39
Closed_By joomla-cms-bot
avatar alikon alikon - change - 22 Dec 2019
Closed_By joomla-cms-bot alikon
avatar joomla-cms-bot joomla-cms-bot - close - 22 Dec 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Dec 2019

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

avatar alikon
alikon - comment - 22 Dec 2019

please test #27334


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

avatar Fedik
Fedik - comment - 22 Dec 2019

I found this bug also in j4, but this need to be fixed separately because the subform script was rewritten there.

#27334 only for j3

@alikon can you please reopen it? and maybe tag somehow that it also j4, if possible

avatar alikon alikon - change - 22 Dec 2019
Status Closed Pending
Closed_Date 2019-12-22 11:11:39
Closed_By alikon
avatar joomla-cms-bot joomla-cms-bot - change - 22 Dec 2019
Status Pending New
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 22 Dec 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Dec 2019

Set to "open" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/27307

avatar alikon
alikon - comment - 22 Dec 2019

reoponed as requested


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

avatar alikon
alikon - comment - 22 Dec 2019

reopened
p.s
unfortunately i don't ave that superpower

avatar Quy Quy - change - 22 Dec 2019
Labels Added: J4 Issue
avatar Quy Quy - labeled - 22 Dec 2019
avatar Quy
Quy - comment - 23 Dec 2019

Thank you! Please test #27342 for J4.

avatar Quy Quy - change - 23 Dec 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-12-23 16:06:20
Closed_By Quy
avatar Quy Quy - close - 23 Dec 2019

Add a Comment

Login with GitHub to post a comment