? ? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
11 Apr 2021

Pull Request for Issue #28389.

Summary of Changes

Joomla! has a custom field type called Subfields and recently, renamed to Subform in a different PR. From it's documentation https://docs.joomla.org/Custom_fields_type:_Subfields

the aim of it is to provide the user the possibility to create a repeatable custom field for an item with multiple related fields

There are some UX issues with that kind of custom field as described below (see #28389 for detailed discussion):

  • On Fields Management screen, there is no way to know if a custom field is a standard field or it is a subfield (part of a Subform custom field type).
  • To prevent a custom field from being used both as standard field and as part of a Subform, we need to set Category of that custom field to None. It's hard to know about that.
  • There is no filter option to allow seeing custom fields which are being used as part of Subform.
  • There is no option to limit maximum number of rows which can be added when adding data for a Subform.
  • Users won't know that they must add some standard fields before they can add a Subform.

This PR tries to solve these issues base on suggestions from @AndySDH. See #28389 (comment) for details (one of the suggestion is renaming the custom field type from Subfields to Subform but it is handled by different PR)

  1. Add a new setting Use In Subform on add/edit custom field screen to indicate that the field will be used in Subform.
  • When it set to Yes, categories selection will become hidden.
  • Category of the field will become None.
  1. Add a filter to search tool to allow filtering fields belong to Subform (Yes/No). By default, all fields will be show.

filter

  1. If you add a Subform custom field but forgot to create at least one standard field before , there will be a warning displayed at the top to tell you about that.
    warning

  2. On Custom Fields Management screen, add a small badge next to the field so that we know if it is a field which is used for SubForm Only.

subform_only

  1. Add a new setting called Maximum Rows to control maximum number of rows which you can add while adding data for that Subform custom field type.

Testing Instructions

  1. Install Joomla 4 nightly build. Or if you are having an existing Joomla 4 installation, please update that installation to latest Joomla 4 nightly build.
  2. Download update package for this PR at https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/33096/downloads/42296/Joomla_4.0.0-beta8-dev+pr.33096-Development-Update_Package.zip , go to System -> Update -> Joomla, upload and install that update package
  3. Go to Content -> Custom Fields, create one or two Text custom fields. On adding custom field screen, confirm that you see a new setting called Only Use In Subform. Set it to Yes and confirm that the Category selection at the right is hidden. Save the field, you will be redirected to Custom Fields list screen. Confirm that you see a badge Subform Only displays next to that custom field (to indicate that the custom field is only used in Subform)
  4. Create another custom field type Subform . Confirm that:
  • You do not see Only Use In Subform setting.
  • You see a new setting called Maximum Rows. Set it to the number you want (for example 2). In the Fields setting of that custom field, select some fields for it.
  1. Go back to custom fields list screen, click on Filter Options to show search tools. You will see a new filter option Only Use In Subform, use it and make sure it is working as expected
  2. Now, create a new article. Navigate to Fields tab, enter data for that Subform custom field which you created. Please make sure that you cannot add more rows for that custom field than the number you entered into Maximum Number Rows setting of that field (2 in the case)
avatar joomdonation joomdonation - open - 11 Apr 2021
avatar joomdonation joomdonation - change - 11 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2021
Category SQL Administration com_admin Postgresql com_fields
avatar AndySDH
AndySDH - comment - 11 Apr 2021

This looks nice @joomdonation, thanks for working on this!

  1. That setting should probably be called "Only use in Subform".
    As you are normally already free to use a field both as a normal field (so with category assignments) AND inside a subform.
    So since that toggle will make the Category Input hide, it should be used for fields you want to be used ONLY in subforms and nowhere else.
    So probably the param should be called something like "subform_only" rather than "use_in_subform"

  2. Great!

  3. Nice! What happens at the bottom part of the screen, where the Field Selection Dropdown would be? Does it still show an empty dropdown?

Naming

Of course all of this should be synced with any pending name-change we might decide for this type of field, see: #32864 (comment)

So it may end up being called something like "Only use in Nested Fields" or something like that

avatar joomdonation
joomdonation - comment - 11 Apr 2021
  1. Easy. It is just a language item which we need to change. I haven't added it to language file yet :D. As I said, quick prototype PR only

  2. It is still as before, empty dropdown. I want to leave it here so that the system will prevent user from saving the field without having to enter any any other coding works, check.....

Do you have any idea to indicate a field is Use In SubForm only on custom fields list screen?

avatar AndySDH
AndySDH - comment - 11 Apr 2021

It is still as before, empty dropdown. I want to leave it here so that the system will prevent user from saving the field without having to enter any any other coding works, check.....

Makes sense. The warning at the top should suffice.

Do you have any idea to indicate a field is Use In SubForm only on custom fields list screen?

Sure, nice idea!

We could put a label like this (pardon the J3 interface, just a quick draft to convey the idea):

image

or alternatively, since Category is set to None anyway, even something like this:

image

Whichever way you like better :)

avatar joomdonation joomdonation - change - 11 Apr 2021
Labels Added: ?
avatar joomdonation
joomdonation - comment - 11 Apr 2021

Don't ask me for layout :D. I made a quick modification and now it looks like below

subform_only

avatar AndySDH
AndySDH - comment - 11 Apr 2021

Looks good! I would probably put it on the side, rather than below. Similar to how "Hidden" is on the side for Hidden Menu Items. To optimize the available space.
Nice job :)

avatar joomdonation
joomdonation - comment - 11 Apr 2021

I will ask someone to help with layout things :). Now the next thing we should discuss about migrating data. Somehow, we will have to mark existing fields which is used in subform as Use In SubForm Only. For existing fields, what fields we should do that change?

  • Fields which are part of subform
  • And assigned to Category None ?

Is that enough?

And do you know when subform was added to Joomla? I want to ask this because it is just added to Joomla 4, maybe we will have to update the script at #32611 to do this conversion when migrating repeatable fields to subform fields from Joomla 3 to Joomla 4 only

avatar joomdonation
joomdonation - comment - 11 Apr 2021

Wait, let me take that back. Category "None" is not even part of J3. It's a J4 feature.

So I would say we shouldn't care about this in the migration.

Nice, less work for us :)

avatar AndySDH
AndySDH - comment - 11 Apr 2021

Actually, let me take that back again (sorry, ideas keep coming to mind lol).

In Joomla 3, we only had "Repeatable" field. Joomla 4 introduces the new Subform/Subfields type.

So this means, that ALL Repeatable fields that might have been created in Joomla 3, are ALL actually intended to be used only in Subform (there was no way to use it as normal field as well).

So, all fields part of the J3 repeatable field make sense to be migrated to "Subform Only", if you want to do that, as part of the migration process.

avatar joomdonation
joomdonation - comment - 11 Apr 2021

@brianteeman Could I ask you for suggestions about two terms:

  • The setting which is used to determine if a field is used on SubForm only. Can we use Only use in Subform ? I need to know now because the name which use to store data in database table will depend on the terrm.
  • The badge which is used to show on Custom Fields management screen to show that a field is used for SubForm only. Can we use the term SubForm Only?
avatar joomdonation
joomdonation - comment - 11 Apr 2021

Actually, let me take that back again (sorry, ideas keep coming to mind lol).

In Joomla 3, we only had "Repeatable" field. Joomla 4 introduces the new Subform/Subfields type.

So this means, that ALL Repeatable fields that might have been created in Joomla 3, are ALL actually intended to be used only in Subform (there was no way to use it as normal field as well).

So, all fields part of the J3 repeatable field make sense to be migrated to "Subform Only", if you want to do that, as part of the migration process.

I can update the migration script to have it works like that later after we finish this one. And just final question: With the change in this PR when it is ready, do you think we can close the release blocker #28389 ?

avatar brianteeman
brianteeman - comment - 11 Apr 2021

Some questions.

Why subform only and why no category?

Scenario

I have the following fields

  • name
  • date
  • age
  • school
  • class
  • city

I have a subform called english with the following fields

  • name
  • age

I have another subform that is only displayed in the category exam with the following fields

  • name
  • school
  • class

For me all I would be changing on the list view of all fields would be to indicate if a field is used in a subform and the name of the subform. ie exactly like category but in addition to and not instead of

Am I missing something that prevents that?

avatar brianteeman
brianteeman - comment - 11 Apr 2021

oh and its not really a subform but a group/collection of fields

avatar AndySDH
AndySDH - comment - 11 Apr 2021

@brianteeman As far as "Why Category None", it's because a field that is set to be "only used in a Subform" is not (cannot) be assigned to a category.

Its assignment will then be solely related to the category of its "Subform / Parent Field", so hence why its own category becomes "None" - so it doesn't appear as a normal field on its own.

oh and its not really a subform but a group/collection of fields

Yeah, hence why not sure if we should call it Subform in your PR? #32864 (see my comment)

avatar joomdonation
joomdonation - comment - 11 Apr 2021

Actually, if you assign that field to a a category (not None), when you add an item (for example, an article), the field will be displayed both as standard field and as part of SubForm, so it is confusing (not sure if I understand the question correctly)

avatar joomdonation
joomdonation - comment - 11 Apr 2021

But if we introduce a new setting Use In SubForm Only (call it anything we like), the field can still be assigned to categories if we want. Then on dropdown when we add new SubForm field, we will only show field which has Use In SubForm Only set to Yes. When display form to allow add/edit item, we can hide these fields, I think.

avatar brianteeman
brianteeman - comment - 11 Apr 2021

I dont understand why "use in subform only" do you actually mean "this field is used in a subform called x"

avatar AndySDH
AndySDH - comment - 11 Apr 2021

I dont understand why "use in subform only" do you actually mean "this field is used in a subform called x"

It's just so to mark a field as usable ONLY in a subform, and not as normal field.

By default, you can use a field BOTH as part of a subform and a normal field.

So for example, you can have a field "Age" assigned to the "People" category as a normal field. And have it part of the "English" subform somewhere else.

By setting it as a "Subform only", you would do that if you want the field to not be normally assigned to any category (= None), and so only available for selection in Subforms.

It's also possible to use a field as part of more than one Subform. Even unlimited number of Subforms. So it's not as straight forward to say "this field is part of these subforms" (although it would certainly be nice to have it say that somewhere).

avatar joomdonation
joomdonation - comment - 11 Apr 2021

And if it is needed, when we add a new SubForm field type (called Subfields at the moment), we can only display fields marked as use in subform only

That would help choosing fields easier. Right now, it displays all fields in dropdown and in case you have many fields, It will be hard to choose the field

limit_fields

avatar AndySDH
AndySDH - comment - 11 Apr 2021

And if it is needed, when we add a new SubForm field type (called Subfields at the moment), we can only display fields marked as use in subform only

That would help choosing fields easier. Right now, it displays all fields in dropdown and in case you have many fields, It will be hard to choose the field

That depends. That would be a loss of functionallity. You would have to create SPECIFIC subform fields, instead of being able to choose from ANY field.

If we were do to that, then we would lose the ability to do this:

you can use a field BOTH as part of a subform and a normal field.
So for example, you can have a field "Age" assigned to the "People" category as a normal field. And have it part of the "English" subform somewhere else.

avatar brianteeman
brianteeman - comment - 11 Apr 2021

I think you are overthinking this. Just let me see if a field is being used in a subform and the name of the form. Doesnt need anything more than that My 2c.

avatar joomdonation
joomdonation - comment - 11 Apr 2021

@brianteeman In theory, a field could be used on multiple SubForm fields, and we do not have an easy way to know that it is used as part of subform at the moment, that's why we introduce a new setting

The ability to filter fields to see list of fields which are using is useful, too, I think

Finally, set Category to None automatically is good, too. See the reason in my earlier comment #33096 (comment)

So I would leave it works as how it is in this PR (beside change the terms if needed)

avatar joomdonation joomdonation - change - 11 Apr 2021
The description was changed
avatar joomdonation joomdonation - edited - 11 Apr 2021
avatar chmst
chmst - comment - 11 Apr 2021

I rarely use field, so I am kind of novice user here.

First of all I have problems with the terminology - subfields - sub-field - subform - as a user I don't understand the whole fields terminology. (Not in scope of this PR - Why do we have Field groupp, which is a field catgegory? I know it from develoeprs point of view, but not as a user).

So my2cent:

If I understand this PR right, we have three constellations for fields:

  • not in a subform
  • used in a subform or stand alone
  • only used in a subform

Filter
It is a good idea to have a filter with these options

New or edit Form

  • Add an indicator for "used in subforms".
  • Categories can have preset "All" as it is now, the category "none" is not needed

Overview:

  • if a field is not in a subform, nothing changes
  • if a field is used in a subform then add a button - "used in subforms" as suggested

Categories:

  • not in a subform - show the categories
  • used in a subform or stand alone - "used in subforms aa, bb, .." and show the categories
  • only used in a subform - "used in subforms: xx, aa, ...". The categories can be hidden or set to "All"

I think that category none is not necessaty at all

avatar joomdonation joomdonation - change - 15 Apr 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Apr 2021
Category SQL Administration com_admin Postgresql com_fields SQL Administration com_admin Postgresql com_fields Language & Strings Installation
4bb1df3 15 Apr 2021 avatar joomdonation CS
avatar joomdonation joomdonation - change - 15 Apr 2021
Labels Added: ?
avatar joomdonation
joomdonation - comment - 15 Apr 2021

@AndySDH When you have time, could you please give this PR a quick test to see if I am missing anything else (base on your suggestions) before I mark this PR as ready for review? As it contains change to database, please download the update package for this PR from https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/33096/downloads/41974/ , then go to System -> Joomla -> Update to update the package to test.

avatar joomdonation
joomdonation - comment - 15 Apr 2021

@Quy Could you please commit your suggested changes to language/codestyle/layout please?

avatar Quy Quy - change - 15 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation joomdonation - change - 17 Apr 2021
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Apr 2021
Category SQL Administration com_admin Postgresql com_fields Language & Strings Installation SQL Administration com_admin Postgresql com_fields Language & Strings Installation Front End Plugins
avatar joomdonation joomdonation - change - 17 Apr 2021
Labels Added: ?
Removed: ?
avatar AndySDH
AndySDH - comment - 17 Apr 2021

Small thing that I can see from the code: the new 'max_rows' parameter should only show if 'repeat' is set to 1
(it only applies if the field is repeatable)

avatar joomdonation joomdonation - change - 17 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation
joomdonation - comment - 17 Apr 2021

Small thing that I can see from the code: the new 'max_rows' parameter should only show if 'repeat' is set to 1
(it only applies if the field is repeatable)

Done !

avatar joomdonation
joomdonation - comment - 17 Apr 2021

@AndySDH I don't know if the SQL command is executed when we install the update package or not. Maybe you can run this SQL command manually to your database via phpmyadmin

ALTER TABLE jos_fields ADD only_use_in_subform tinyint(1) NOT NULL DEFAULT 0;

(replace jos_ with the prefix of your site database)

avatar joomdonation
joomdonation - comment - 17 Apr 2021

@richard67 Do you know how to to execute the SQL changes in a PR like this one?

avatar richard67
richard67 - comment - 17 Apr 2021

@joomdonation They will be executed when someone updates to the update package built for this PR by drone, and they can be run "manually" in an SQL client like e.g. phpMyAdmin, and they can be run by applying the PR and then going to "System - Manage - Database" and using the fix button.

avatar joomdonation
joomdonation - comment - 17 Apr 2021

@richard67 Thanks. This afternoon, I tried to download the update package for this PR from https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/33096/downloads/42053/ , and go to System -> Update -> Joomla, upload that package to update but it seems the SQL is not executed. I had to run the SQL command manually via phpmyadmin

avatar richard67
richard67 - comment - 17 Apr 2021

@joomdonation Wait with committing my suggestions above ... I might have to correct them by another mistake.

avatar AndySDH
AndySDH - comment - 17 Apr 2021

I tested all of the applied changes succesfully, great job @joomdonation!

However, I have a few notes for issues I encountered, or further improvements that should be made:

FIELD CREATION FORM

  • Should we add a default to maximum number rows option? Now it's '0', should we maybe leave it empty? Not sure 0 looks nice.

FIELDS LISTING

  • As mentioned before, I'd put the 'Subform Only' badge on the side of the field name, instead of under it (similar to how it's done for hidden Menu Items)

ARTICLE EDIT FORM

  • I think we should surround the whole Subform with a fieldset, for clarity. When a field is not repeatable, it's not easy to tell the child fields apart from normal fields.

  • A media file doesn't work inside a Subform. When you click "Select" to select a picture, nothing happens.

  • The subform table doesn't occupy the 100% width of the space available in the backend edit form:
    Cattura

  • The subform table exceeds the maximum width available in the frontend edit form, making it impossible to edit or add new rows.
    2Cattura

REPEATABLE MIGRATION FROM JOOMLA 3

  • All migrated child field from Joomla 3 should be marked as "only_use_in_subform" = 1

Apart from these fixes, everything else works as explained!

avatar joomdonation
joomdonation - comment - 17 Apr 2021

@richard67 I'm unsure what is the change? Feel free to commit it yourself

avatar Quy Quy - change - 17 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation
joomdonation - comment - 17 Apr 2021

@AndySDH

  • For the change in article edit form, it should be handled in a separate PR, I think. Please don't ask me to do the layout stuff, it would take me years for doing that :D. Someone with better frontend skill could help with that task
avatar richard67
richard67 - comment - 17 Apr 2021

@joomdonation In SQL files we also have a newline at the end of the file. And in the MySQL file, the "COLUMN" was missing. It is also valid SQL syntax without it for MySQL, but the database fixer will not understand it. Therefore the golden rule when creating update SQL scripts for Joomla is to look for an already existing script which does the same (adding a column) and stay with the syntax of that.

avatar AndySDH
AndySDH - comment - 17 Apr 2021

@AndySDH

  • For the change in article edit form, it should be handled in a separate PR, I think. Please don't ask me to do the layout stuff, it would take me years for doing that :D. Someone with better frontend skill could help with that task

Sure, just raising the issues :)

avatar joomdonation
joomdonation - comment - 17 Apr 2021

@Quy Could you help me with this:

As mentioned before, I'd put the 'Subform Only' badge on the side of the field name, instead of under it (similar to how it's done for hidden Menu Items)

avatar Quy
Quy - comment - 17 Apr 2021

As mentioned before, I'd put the 'Subform Only' badge on the side of the field name, instead of under it (similar to how it's done for hidden Menu Items)

Use span instead of div and move the code near the field name.

0681936 17 Apr 2021 avatar joomdonation CS
avatar AndySDH
AndySDH - comment - 17 Apr 2021

Oh, just noticed: The option "Only Use in Subform" should not display in fields of type 'subfields'. As we can't nest a subform inside a subform.

avatar joomdonation
joomdonation - comment - 17 Apr 2021

@AndySDH I noticed that this afternoon. I was thinking about using showon but for some reasons, it was not working when I tried this afternoon. Will try to look at it again later.

avatar joomdonation joomdonation - change - 21 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation joomdonation - change - 21 Apr 2021
Title
[4.0] Draft subform UX
[4.0] Subform UX
avatar joomdonation joomdonation - edited - 21 Apr 2021
avatar joomdonation joomdonation - change - 21 Apr 2021
The description was changed
avatar joomdonation joomdonation - edited - 21 Apr 2021
avatar joomdonation
joomdonation - comment - 21 Apr 2021

@AndySDH I implemented latest change request from you. I also updated testing instructions and mark this PR as ready to review. Please help testing it when you have time

avatar Quy Quy - change - 22 Apr 2021
Labels Added: ?
Removed: ?
avatar Quy Quy - change - 22 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation joomdonation - change - 22 Apr 2021
The description was changed
avatar joomdonation joomdonation - edited - 22 Apr 2021
avatar AndySDH AndySDH - test_item - 22 Apr 2021 - Tested successfully
avatar AndySDH
AndySDH - comment - 22 Apr 2021

I have tested this item successfully on 56c827e


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

avatar Quy
Quy - comment - 22 Apr 2021

Installed Blog Sample Data:

PHP Notice: Undefined index: only_use_in_subform in \administrator\components\com_fields\src\Model\FieldModel.php on line 171

avatar Quy
Quy - comment - 23 Apr 2021

For Subform type, hide Only Use In Subform?

avatar joomdonation
joomdonation - comment - 23 Apr 2021

@Quy

PHP Notice: Undefined index: only_use_in_subform in \administrator\components\com_fields\src\Model\FieldModel.php on line 171

When do you see that error? When you edit the field or save it?

For Subform type, hide Only Use In Subform?

Yes. It is working like that. I think you see this issue because you applied the PR #33200 . The code in current PR checks for Subfields, why the applied PR changed it to Subform. I will wait for that PR merged, then make the change and we can test it again. Thanks for reviewing and testing.

avatar Quy
Quy - comment - 23 Apr 2021

In PHP error log. The sample data installation stops at step 1.

I installed the download package without applying #33200.

avatar joomdonation
joomdonation - comment - 23 Apr 2021

In PHP error log. The sample data installation stops at step 1.

I installed the download package without applying #33200.

Ah, that explained why I could not install Blog Sample Data. I only think about field created using UI (which only_use_in_subform is always available in $data array). I can make a small modification to solve this issue.

avatar joomdonation joomdonation - change - 23 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation joomdonation - change - 23 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation joomdonation - change - 23 Apr 2021
The description was changed
avatar joomdonation joomdonation - edited - 23 Apr 2021
avatar joomdonation joomdonation - change - 23 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation joomdonation - change - 23 Apr 2021
The description was changed
avatar joomdonation joomdonation - edited - 23 Apr 2021
avatar Quy
Quy - comment - 23 Apr 2021

Edit a subform field. Applied #33262.

33096

avatar kiki-G
kiki-G - comment - 23 Apr 2021

Getting errors testing 339096
I am getting this error The file marked for modification does not exist: administrator/components/com_fields/src/Field/SubfieldsField.php


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

avatar kiki-G
kiki-G - comment - 23 Apr 2021

Getting errors testing 33096
I am getting this error The file marked for modification does not exist: administrator/components/com_fields/src/Field/SubfieldsField.php


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

avatar joomdonation
joomdonation - comment - 23 Apr 2021

@kiki-G If it is possible, please setup a fresh installation (generated by this PR) and test it

You can download the full package for this PR here https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/33096/downloads/42296/Joomla_4.0.0-beta8-dev+pr.33096-Development-Full_Package.zip

Thanks

avatar TLWebdesign TLWebdesign - test_item - 23 Apr 2021 - Tested successfully
avatar TLWebdesign
TLWebdesign - comment - 23 Apr 2021

I have tested this item successfully on a0dbc20


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

avatar joomdonation joomdonation - change - 23 Apr 2021
Labels Added: ?
Removed: ?
avatar joomdonation
joomdonation - comment - 23 Apr 2021

@Quy My last commit should fix your last issue (with field editing). Please help running a new test/

avatar richard67 richard67 - change - 23 Apr 2021
Labels Added: ?
Removed: ?
avatar richard67 richard67 - change - 23 Apr 2021
Labels Added: ?
Removed: ?
avatar RickR2H RickR2H - test_item - 23 Apr 2021 - Tested successfully
avatar Quy Quy - test_item - 25 Apr 2021 - Tested successfully
avatar Quy
Quy - comment - 25 Apr 2021

I have tested this item successfully on a0dbc20


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

avatar Quy Quy - change - 25 Apr 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 25 Apr 2021

RTC


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

avatar rdeutz rdeutz - close - 25 Apr 2021
avatar rdeutz rdeutz - merge - 25 Apr 2021
avatar rdeutz rdeutz - change - 25 Apr 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-04-25 10:04:23
Closed_By rdeutz
Labels Added: ?
Removed: ?
avatar AndySDH
AndySDH - comment - 16 May 2021

@joomdonation One thing I figured out is that we missed one case.

The Users Component also has custom fields, however, they have no "Categories".

So if you create a field in the Users Component, and you mark it as "Only Use In Subform", nothing is done with that setting, and it still remains in the form when you go to edit user profile (either from backend or frontend).

So to fix this, in this scenario, the field should be removed from the user form when marked as "Only Use in Subform". @joomdonation let me know

avatar joomdonation
joomdonation - comment - 17 Aug 2021

@AndySDH Will look at it later. Busy these days to have all my own extensions compatible with J4. Today is the last day :).

avatar AndySDH
AndySDH - comment - 17 Aug 2021

Sure, thanks!

Add a Comment

Login with GitHub to post a comment