User tests: Successful: Unsuccessful:
Do not load language
column separately for each <option> in <select>
field - JFormFieldCategory
.
Instead do this once in JHtmlCategory
.
Joomla should works as before.
Before test you have to have a few categories (at least a few multi languages) for articles.
Enable debug mode.
Go to edit some menu item (or articles view) in backend.
Check what categories you have in search field Category - some of them should have suffix like " (en-GB)".
Check number of queries in debug position at the bottom of page.
Find queries which look like "SELECT language FROM #__categories WHERE ..."
.
If you have 50 categories for articles then you will see 50 queries like above.
Apply patch.
The above queries disappear.
Joomla will still (as before) show category title with language code in brackets if language is not set as All
.
Not too many queries related to category field.
If you have 100 categories for articles then joomla adds 100 additional simple queries for each category item (<option>
) in form field.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
It seems that you do not apply patch correctly or...
Take a look to the current code changes.
Maybe you tested it on the other view which is not affected by current changes.
I have removed such query from libraries/legacy/form/field/category.php
.
Do you override such class somewhere?
Apologies. I was a bit confused by your instructions.
Go to edit some menu item (or articles view) in backend.
I was not testing the right view.
Should have only loaded the Articles Manager where we have a Search Category Field as this does not work for the category field when editing an article (which is a pity.) :)
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-15 09:20:02 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 4f752db
Tested the issue:
I had 7 categories, it was making 8 querys, returning 14 rows.
After testing your PR, 7 categories, 1 query, 7 rows, and everything still works.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14659.