User tests: Successful: Unsuccessful:
Remove unnecessary SQL query for the custom fields, during the form rendering.
FieldsHelper::getFields() load the field value, however FieldsHelper::prepareForm() also loading them wthout a reason.
Also removed some dead code.
Enable debug and debug query.
Create a couple of Custom fields, let say 10.
Open article editing.
Notice amount of query in debug.
Let say 75
The amount of query will be 10 less, 65
Please select:
| Status | New | ⇒ | Pending | 
| Category | ⇒ | Administration com_fields | 
I have tested this item ✅ successfully on 59bd3b7
I have tested this item ✅ successfully on 59bd3b7
Its ok Queries have decreased
shuldn't that go into 4.4?
| Status | Pending | ⇒ | Ready to Commit | 
| Labels | 
                                        Added: 
bug
PR-5.1-dev
 | 
    ||
RTC
Is the unnecessary query an issue in 4.4, too?
yeap,
I will do another, later
During PBF
16 Content Article - Custom fields (my Group),
before patch 67 queries, after patch 51 queries
| Status | Ready to Commit | ⇒ | Closed | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-25 12:01:39 | 
| Closed_By | ⇒ | Fedik | |
| Labels | 
                                        Added: 
RTC
 | 
    ||
| Status | Closed | ⇒ | New | 
| Closed_Date | 2024-02-25 12:01:39 | ⇒ | |
| Closed_By | Fedik | ⇒ | |
| Labels | 
                                                                Removed: 
RTC
 | 
    ||
| Status | New | ⇒ | Pending | 
I've restored the previous human test results as the PR was closed but then reopened, and there was no change since the successful tests.
| Status | Pending | ⇒ | Ready to Commit | 
RTC
| Title | 
            
            
  | 
    ||||||
I moved it to 5.2 as a decision from maintainer
| Labels | 
                                        Added: 
RTC
PR-5.2-dev
 Removed: PR-5.1-dev  | 
    ||
| Status | Ready to Commit | ⇒ | Fixed in Code Base | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-30 08:23:56 | 
| Closed_By | ⇒ | pe7er | 
I have tested this item ✅ successfully on 59bd3b7
Before: 61 queries. After: 51 queries.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42861.