User tests: Successful: Unsuccessful:
The same as #42861 but for j4
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 |
Title |
|
Does this also work when you fetch two articles within the same request. Pretty sure the second article gets the same rawvalue as the first one.
Nope
joomla-cms/administrator/components/com_fields/src/Helper/FieldsHelper.php
Lines 179 to 185 in d272577
Every time you call FieldsHelper::getFields
it will load new values.
I have tested this item ✅ successfully on e5e307b
I have tested this item ✅ successfully on e5e307b
RTC
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
bug
PR-4.4-dev
|
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-07 09:13:50 |
Closed_By | ⇒ | Fedik | |
Labels |
Added:
RMDQ
|
@crommie @chmst @adj9 As you had tested PR #42861 , could you test this one here, too? It's the same as the other one, just for 4.4 instead of 5.1. Thanks in advance.