? ? Pending

User tests: Successful: Unsuccessful:

avatar tonypartridge
tonypartridge
8 Nov 2017

Pull Request for Issue #18478 .

Allows () and all other characters to be used in titles and searched with highlighting.

Summary of Changes

Moved original code into a function for each calling to highlight and avoid duplicating code.

Testing Instructions

Create a search menu item
Create an article with ) in the title or ( and all other characters you can think of.
Search this in the frontend.

Expected result

the searched text to be highlighted in the results

Actual result

partial highlighting of the text and title isn't. Plus error:
Warning: preg_replace(): Compilation failed: missing ) at offset 10 in [WEBDIR]/components/com_search/views/search/view.html.php on line 270

Is output.

NOTE: just done on my laptop, may need to fix drone etc as haven't setup codesniffer properly yet.

avatar tonypartridge tonypartridge - open - 8 Nov 2017
avatar tonypartridge tonypartridge - change - 8 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Nov 2017
Category Front End com_search
avatar tonypartridge tonypartridge - change - 8 Nov 2017
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 8 Nov 2017 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Nov 2017

I have tested this item ? unsuccessfully on 8287ad7

Article using Title "This is (Test) [Article]" is by Searching full Title.

Searching for "[art" Article isn't found.

bildschirmfoto 2017-11-08 um 09 25 56


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18522.
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Nov 2017

Tried from "[Art" to "[Articl" Letter by Letter, but Article isn't found.

Article is found if search for "[Article".

avatar tonypartridge
tonypartridge - comment - 8 Nov 2017

So to confirm the article isn't found at all or the searched word isn't highlighted?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Nov 2017

Article using Title "This is (Test) [Article]" is found and searched Word is highlighted if search for "[Article".

bildschirmfoto 2017-11-08 um 10 27 55

Article isn't found if search for "[Art", "[Arti", "[Artic", "[Articl".

bildschirmfoto 2017-11-08 um 10 28 31

avatar tonypartridge
tonypartridge - comment - 8 Nov 2017

That is expected behaviour @franz-wohlkoenig

This pull only addresses keyword highlighting.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 8 Nov 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Nov 2017

I have tested this item successfully on 8287ad7


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

avatar dtdpro dtdpro - test_item - 8 Nov 2017 - Tested successfully
avatar dtdpro
dtdpro - comment - 8 Nov 2017

I have tested this item successfully on 8287ad7

Tested


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Nov 2017
Status Pending Ready to Commit
avatar joomla-cms-bot joomla-cms-bot - edited - 9 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Nov 2017

RTC after two successful tests.

avatar Quy
Quy - comment - 9 Nov 2017

@franz-wohlkoenig Please remove RTC as there are questions/changes to be done.

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Nov 2017
Status Ready to Commit Pending
avatar joomla-cms-bot joomla-cms-bot - edited - 9 Nov 2017
avatar tonypartridge
tonypartridge - comment - 22 Dec 2017

Drone won't start

But @dtdpro and @franz-wohlkoenig please can I get a retest :-)

avatar brianteeman
brianteeman - comment - 22 Dec 2017

not just you - drone is bjorked

avatar tonypartridge
tonypartridge - comment - 22 Dec 2017

Hehe it is Christmas! :p someone Clearly did not pray to the IT Gods, I blame @wilsonge.

On 22 Dec 2017, 23:16 +0000, Brian Teeman notifications@github.com, wrote:

not just you - drone is bjorked

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 23 Dec 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Dec 2017

I have tested this item successfully on fe584c0


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

avatar Quy Quy - test_item - 23 Dec 2017 - Tested successfully
avatar Quy
Quy - comment - 23 Dec 2017

I have tested this item successfully on fe584c0


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

avatar joomla-cms-bot joomla-cms-bot - edited - 23 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Dec 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Dec 2017

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 3 Jan 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-01-03 00:16:42
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 3 Jan 2018
avatar mbabker mbabker - merge - 3 Jan 2018

Add a Comment

Login with GitHub to post a comment