? bug PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
21 Apr 2023

Summary of Changes

Changes the way tours are counted in the module. The result is the same but without the warning about unreachable code

Testing Instructions

Check to make sure that there are a maximum of 7 tours in the module dropdown
Change the count in the module and check that the dropdown is changed correctly

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 21 Apr 2023
Category Modules Administration
avatar brianteeman brianteeman - open - 21 Apr 2023
avatar brianteeman brianteeman - change - 21 Apr 2023
Status New Pending
634c2c9 21 Apr 2023 avatar brianteeman oops
avatar brianteeman brianteeman - change - 21 Apr 2023
Labels Added: PR-4.3-dev
avatar coolcat-creations
coolcat-creations - comment - 21 Apr 2023

I do not have a warning before applying the patch. How can I reproduce it? (Error Reporting is set to maximum)

avatar brianteeman
brianteeman - comment - 21 Apr 2023

Sorry for not being clear. The warning about unreachable code will only be seen in an ide. You just need to follow the test instructions to confirm that after the changed code the count still works

avatar coolcat-creations coolcat-creations - test_item - 21 Apr 2023 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 21 Apr 2023

I have tested this item successfully on 634c2c9

Tested Successfully - Count still works after applying the patch


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

avatar coolcat-creations
coolcat-creations - comment - 21 Apr 2023

Thank you @brianteeman


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

avatar Quy
Quy - comment - 21 Apr 2023

Another way is to add the following after line 55:
$listTours = array_slice($listTours, 0, $params->get('tourscount', 7));

and remove:

            <?php if ($i >= $params->get('tourscount', 7)) : ?>
                <?php break; ?>
            <?php endif; ?>
avatar brianteeman
brianteeman - comment - 21 Apr 2023

@Quy - I am sure there are lots of ways

avatar HLeithner
HLeithner - comment - 3 Jun 2023

I created a pull request for you brianteeman#496

avatar brianteeman
brianteeman - comment - 3 Jun 2023

@HLeithner there are lots of unrelated changes in your pr

avatar HLeithner
HLeithner - comment - 3 Jun 2023

@HLeithner there are lots of unrelated changes in your pr

only code style and revert to what it was before, but you can just pick what you need and commit it your self. I don't need to be mentioned.

avatar brianteeman
brianteeman - comment - 3 Jun 2023

I will look tomorrow. I don't use the computer on Saturday

avatar brianteeman brianteeman - change - 5 Jun 2023
Labels Added: bug
avatar Quy Quy - test_item - 9 Jun 2023 - Tested successfully
avatar Quy
Quy - comment - 9 Jun 2023

I have tested this item successfully on 83c0a30


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

avatar khu5h1 khu5h1 - test_item - 7 Jul 2023 - Tested successfully
avatar khu5h1
khu5h1 - comment - 7 Jul 2023

I have tested this item successfully on 83c0a30


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

avatar alikon alikon - change - 7 Jul 2023
Status Pending Ready to Commit
avatar alikon
alikon - comment - 7 Jul 2023

RTC


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

avatar obuisard obuisard - change - 14 Jul 2023
Labels Added: ?
avatar obuisard obuisard - close - 14 Jul 2023
avatar obuisard obuisard - merge - 14 Jul 2023
avatar obuisard obuisard - change - 14 Jul 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-07-14 21:23:17
Closed_By obuisard
avatar obuisard
obuisard - comment - 14 Jul 2023

Thank you Brian @brianteeman for the PR!

Add a Comment

Login with GitHub to post a comment