45 Posts
mato
8 years ago
6
Topic

Hi,

I think I found a bug regarding the behavior of the 2 plus and minus buttons on Groupx fields.

When I have more than 2 groupX in the same form, the minus button can make the whole groupX's children fields disappear.

See for yourself here : 

- 2 groupX on this page : if you click on +, then - twice, the fields inside the grey border disappear, leaving a small and empty grey rectangle :(

- only 1 groupX on this page : if you do the same, the last group remains here and can't be deleted.

I guess the javascript hasn't been made to be called twice, but I can't fix it by myself.

Should I make an entry on Github ?

-Mato

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
0
Level 1

Hi,

do you use latest seblod? there have been some fixes in the 3.9.10. If issue is still there after update, please make an issue.

45 Posts
mato
8 years ago
1
Level 1

Hi,

The update to Joomla 3.6.2 and Seblod 3.10.0 went smooth (as expected) but, the bug remains.

I have been able to track down the bug a bit more : when only one GroupX is present in the content-type, the classes "cck_form_group_x_first" and "cck_form_group_x_last" are created correctly, and they seem to prevent the last group to be deleted.

However, when there are 2 or more GroupX in the same content-type, these classes don't get created as expected when using -/+ buttons.
As a result, the last remaining group doesn't have both classes (sometimes it is the former that is missing, sometimes the latter) and can be deleted with a last click on the (-).

I looked at the file cck_field/group_x/assets/js/script2.js, but couldn't fix it.

-Mathieu

4229 Posts
Kadministrator
8 years ago
0
Level 2

Hi,

please report this on the tracker

8 years ago
2
Level 1

HI mato,

can you share the configuration of your 2 groupX Fields?

We can't reproduce your problem, and the groupX is made to work with multi instances on the same page.

Be sure to have set the Min option to 1 and not to 0.


Regards.

Lionel

45 Posts
mato
8 years ago
1
Level 2

Voici les paramètres de tous les GroupX de la page.
De plus, il n'y a rien de spécial dans les paramètres 1-6.

J'ai l'impression que je vais devoir vous faire un site spécial avec un Joomla et un Seblod de base pour que vous puissiez vous apercevoir vous-même du problème. Il faudra donc attendre un peu, mais ce bug étant important, je vais m'en occuper dès que j'ai le temps.

-Mathieu

4229 Posts
Kadministrator
8 years ago
0
Level 3

I'm also unable to reproduce this.

Can you try if it works with one of default Joomla templates, you have a lot of javascripts running on that page that could interfere with gropux script?

Get a VIP membership