User tests: Successful: Unsuccessful:
Pull Request for #38700
When you uninstall a template it does NOT remove the database entry for any overrides for that template in #__template_overrides.
As a result the count on the quickicon does not change.
This site was a j3 site that has now been updated to j4
When a template is uninstalled any record in the #__template_overrides table for that template will now be deleted
On update the #__template_overrides is checked to see if there are any orphaned records from previous templates that have now been deleted and if found then it deletes those records.
Create a site with a previous release of joomla
Clone the template TWICE
In each cloned template create various template overrides
Update the site to the current release of joomla
You should now see a count for the number of overrides to check on the home dashboard
Uninstall one of the cloned templates
You should now see that the count for the number of overrides to check on the home dashboard has not changed
Update the site to this build using this update url https://ci.joomla.org/artifacts/joomla/joomla-cms/4.2-dev/38714/downloads/57633/pr_list.xml
You should now see that the count for the number of overrides to check on the home dashboard has changed
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Administration com_admin Postgresql Libraries |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-09-16 11:15:31 |
Closed_By | ⇒ | fancyFranci |
Thank you for making the update a smoother experience :)
just got round to trying
You could use following SQL statements in PhpMyAdmin to clean it up (replace the #__ by your actual database prefix):
DELETE FROM #__template_overrides
WHERE template
NOT IN (SELECT name
FROM #__extensions
WHERE type
='template');
from #38700
and return 0 rows affected and obviously did not clear the problem
I have tested this item✅ successfully on ad285aa
Thank you Brian!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38714.