Skip to content

Conversation

@brianteeman
Copy link
Contributor

This fixes a bug exposed in my own pr #38447

That PR added an action dropdown button When you have overrides. See the original PR for details

However it also added the dropdown when the file was open for editing but at that point it can be selected because it is never active.

This PR removes the button when the file is open for editing.

A better PR would be to make it (or a similar button) work in the edit mode but I don't have the time (and probably the skill) to do that. So at this time I consider this PR a bug fix and the functionality can be added at a later date in another pr

Testing requires overrides that need checking. You can simulate this by

  1. Create template overrides for com_content/article and com_newsfeed/feed
  2. Run this sql query replacing #_ with your db prefix INSERT INTO #__template_overrides (id, template, hash_id, extension_id, state, action, client_id, created_date, modified_date) VALUES (1, 'cassiopeia', 'L2h0bWwvY29tX25ld3NmZWVkcy9uZXdzZmVlZC9kZWZhdWx0LnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54'), (2, 'cassiopeia', 'L2h0bWwvY29tX2NvbnRlbnQvYXJ0aWNsZS9kZWZhdWx0X2xpbmtzLnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54');

You will now have two override files to update and can test this PR

This fixes a bug exposed in my own pr joomla#38447

That PR added an action dropdown button When you have overrides. See the original PR for details

However it also added the dropdown when the file was open for editing but at that point it can be selected because it is never active.

This PR removes the button when the file is open for editing.

A better PR would be to make it (or a similar button) work in the edit mode but I don't have the time (and probably the skill) to do that. So at this time I consider this PR a bug fix and the functionality can be added at a later date in another pr

Testing requires overrides that need checking. You can simulate this by

1. Create template overrides for com_content/article and com_newsfeed/feed
2. Run this sql query replacing #_ with your db prefix
INSERT INTO `#__template_overrides` (`id`, `template`, `hash_id`, `extension_id`, `state`, `action`, `client_id`, `created_date`, `modified_date`) VALUES
(1, 'cassiopeia', 'L2h0bWwvY29tX25ld3NmZWVkcy9uZXdzZmVlZC9kZWZhdWx0LnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54'),
(2, 'cassiopeia', 'L2h0bWwvY29tX2NvbnRlbnQvYXJ0aWNsZS9kZWZhdWx0X2xpbmtzLnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54');

You will now have two override files to update and can test this PR
@richard67
Copy link
Member

I have tested this item ✅ successfully on c3e246c


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

1 similar comment
@Kostelano
Copy link
Contributor

I have tested this item ✅ successfully on c3e246c


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 17, 2022
@roland-d roland-d merged commit aa6384f into joomla:4.2-dev Dec 18, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Dec 18, 2022
@roland-d
Copy link
Contributor

Thank you

@roland-d roland-d added this to the Joomla! 4.2.7 milestone Dec 18, 2022
@brianteeman brianteeman deleted the 38447-fix branch December 18, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants