-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Removing repeatable field plugin #28319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…4repeatable # Conflicts: # administrator/components/com_admin/script.php
|
Thank you for picking this up! @Hackwar |
|
The steps 2 and 3 of the testing instruction are only needed if the patch is applied via patchtester. The PR works fine for me. But there is a small problem. After running the update script I have customer and supplier as subfields. This is correct.. A possible solution could be to set the name of the repeatable as a prefix i.e. "customer-name". There are some problems with UX, but not in scope of this PR. |
|
Thank you for picking this up for J4. Due to circumstances, I was not able to do this yet. Thanks! |
|
When I try to apply the patch through the patch tester I get an error: But I have not other patches applied... what can I do? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28319. |
|
@drmenzelit reset patchtester |
|
Thank you @brianteeman ! It worked now. The PR works. But the same as @chmst wrote: the repeatable was converted to subfields, but two new text fields (the two I created inside the repeatable) appear outside the subfield. I don't know if this is an expected behavior... This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28319. |
|
@drmenzelit yes, unfortunately that is expected behavior. |
|
So I will mark your PR as good. But it is the contrary of UX or self explaining. I will try to identify the UX issues. |
|
I have tested this item ✅ successfully on 7a90f96 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28319. |
1 similar comment
|
I have tested this item ✅ successfully on 7a90f96 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28319. |
By the way that's not "unfortunately". That's a good thing. That's a good feature, it means you can re-use the same fields as part of different subfields :) |
|
@AndySDH yes, it is a good feature. But the subfields feature is not self explaining. For example in the field list, you cannot see which field is sub field only or in which subfields it is used. |
|
Yes, that's true. It could definitely be useful to mark in some better way which subfields are only meant to be used as subfields. For now what I did is put them in a dedicated fieldgroup. But the good thing about this, is that you can even use a field in two ways at the same time: you can both use it as a normal field somewhere, and as a subfield somewhere else! |
|
I'm merging this. I've created a new issue to track the UX of the field given two people independently are finding it confusing #28389 and marked it as a release blocker. |
Pull Request for Issue #23659.
Summary of Changes
We have the subform field and don't need the repeatable field anymore. This removes that field as requested in #23659 and previously done in continga@71f831d.
This PR removes the repeatable field and adds a method to the update script which converts the existing repeatable fields to the subform field type. For all repeatable fields it inserts new fields and links those to the subfields field. To not display them twice in the edit view, the category for the new fields is always set to "none". Please notice that a field in the repeatable field of type "number" can NOT be converted, since we don't have a field of type number. You can however change this later on to integer for example.
Testing Instructions