? ? Pending

User tests: Successful: Unsuccessful:

avatar saumyasarkar11
saumyasarkar11
11 Mar 2021

Summary of Changes
Line 268 has been changed....
From: return preg_replace("/'"^/ui", '\1', $str);
To: return preg_replace("/([a-z])/ui", '\1', $str);

Testing Instructions

  1. Add an article whose title contains a word with double or single quotes (For eg: Typescript's Uses)
  2. Search a for the title
  3. Look out for the title of the search result

Actual result BEFORE applying this Pull Request

Untitled (1)

Expected result AFTER applying this Pull Request

2 (1)

Documentation Changes Required
None

avatar saumyasarkar11 saumyasarkar11 - open - 11 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 11 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2021
Category Administration com_search
avatar saumyasarkar11 saumyasarkar11 - change - 11 Mar 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-03-11 05:24:41
Closed_By saumyasarkar11
Labels Added: ?
avatar saumyasarkar11 saumyasarkar11 - close - 11 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - reopen - 12 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
Status Closed New
Closed_Date 2021-03-11 05:24:41
Closed_By saumyasarkar11
avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
Status New Pending
avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
The description was changed
avatar saumyasarkar11 saumyasarkar11 - edited - 12 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
Title
Issue #32319 fixed
Updated search.php to display proper title in search results
avatar saumyasarkar11 saumyasarkar11 - edited - 12 Mar 2021
avatar richard67
richard67 - comment - 12 Mar 2021

@saumyasarkar11 Now I found your other PR #32639 for the same issue with a different fix at the same place. Am confused. Which PR is the right one and which one shall be closed?

avatar saumyasarkar11
saumyasarkar11 - comment - 12 Mar 2021

@saumyasarkar11 Now I found your other PR #32639 for the same issue with a different fix at the same place. Am confused. Which PR is the right one and which one shall be closed?

This one is the right one. I am closing the other one (PR #32639).

avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
The description was changed
avatar saumyasarkar11 saumyasarkar11 - edited - 12 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 25 Mar 2021
Title
Updated search.php to display proper title in search results
[3.9] Updated search.php to display proper title in search results
avatar saumyasarkar11 saumyasarkar11 - edited - 25 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 25 Mar 2021
Title
[3.9] Updated search.php to display proper title in search results
Updated search.php to display proper title in search results
avatar saumyasarkar11 saumyasarkar11 - edited - 25 Mar 2021
avatar richard67 richard67 - alter_testresult - 25 Mar 2021 - z3-zalox: Tested successfully
avatar richard67
richard67 - comment - 25 Mar 2021

@z3-zalox I assume your above approval was a successful test, right?

avatar z3-zalox
z3-zalox - comment - 26 Mar 2021

@z3-zalox I assume your above approval was a successful test, right?

correct

avatar PhilETaylor
PhilETaylor - comment - 27 Mar 2021

This is wrong...

preg_replace("/([a-z])/ui", '\1', $str);

The \1 is replacing the captured group, so replacing each a-z with the a-z itself.

The whole preg_replace is now redundant and you can just return $str;

avatar richard67
richard67 - comment - 27 Mar 2021

The whole preg_replace is now redundant and you can just return $str;

@saumyasarkar11 @PhilETaylor is right here. Could you change your pull request in this way? Thanks in advance.

avatar saumyasarkar11 saumyasarkar11 - change - 27 Mar 2021
Labels Added: ?
avatar saumyasarkar11
saumyasarkar11 - comment - 27 Mar 2021

Please review the new commit

avatar saumyasarkar11 saumyasarkar11 - change - 8 Apr 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-04-08 09:01:53
Closed_By saumyasarkar11
Labels Removed: ?
avatar saumyasarkar11 saumyasarkar11 - close - 8 Apr 2021
avatar saumyasarkar11 saumyasarkar11 - change - 12 Apr 2021
Status Closed New
Closed_Date 2021-04-08 09:01:53
Closed_By saumyasarkar11
avatar saumyasarkar11 saumyasarkar11 - change - 12 Apr 2021
Status New Pending
avatar saumyasarkar11 saumyasarkar11 - reopen - 12 Apr 2021
avatar saumyasarkar11
saumyasarkar11 - comment - 12 Apr 2021

What's the status here? All my branches got deleted mistakenly and so this pull request @richard67

avatar sandramay0905
sandramay0905 - comment - 15 Apr 2021

Dear maintainers, is this pr ready to test?

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

This PR would be better if there were Unit tests covering the method remove_accents that passed before this change and after this change.

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

and probably the removal of the @todo as well...as it makes no sense now

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

its also unclear from the screenshots what this PR actually resolves?

avatar sandramay0905
sandramay0905 - comment - 15 Apr 2021

Thanks @PhilETaylor for your comment.

its also unclear from the screenshots what this PR actually resolves?

What i see the title is with pr yellow highlighted, without pr highlight stops after single quote.

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

What i see the title is with pr yellow highlighted, without pr highlight stops after single quote.

Ok I see that now in the screenshot - I guess I need better eyes :)

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

Are we sure this doesn't break anything in the comments of #30348 ? Im not in a position to test right now, but it makes sense to check that please

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

This PR will change the following when remove_accents is called.

-This is a" test
+This "is a" test
avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

@saumyasarkar11 Please merge this unit test to your PR saumyasarkar11#3

avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2021
Category Administration com_search Administration com_search Unit Tests
avatar saumyasarkar11
saumyasarkar11 - comment - 16 Apr 2021

@saumyasarkar11 Please merge this unit test to your PR saumyasarkar11#3

Done

avatar saumyasarkar11
saumyasarkar11 - comment - 7 May 2021

This has been pending for quite a while now. Any developments?

avatar zero-24
zero-24 - comment - 12 Jun 2022

I will close here as the method does what its intended to do and this PR would change that behavior. There is also a seccond case here com_search has been removed from j4 and will nolonger be shipped with the core so i would like to keep the current behavior of this method for J3

avatar zero-24 zero-24 - change - 12 Jun 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-06-12 18:41:19
Closed_By zero-24
Labels Added: ? ?
Removed: ?
avatar zero-24 zero-24 - close - 12 Jun 2022

Add a Comment

Login with GitHub to post a comment