? ? ? Success

User tests: Successful: Unsuccessful:

avatar continga
continga
24 Sep 2018

This commit adds the possibility to edit the show_search_form parameter of the com_finder component.

Summary of Changes

That parameter is actually being already in current (and past) versions, see

<?php if ($this->params->get('show_search_form', 1)) : ?>
- but there was no possibility present to set this parameter to a value.
Usage of that parameter was introduced way back with baa5093 but already there you could not set this parameter to a value. This commit fixes this.

Testing Instructions

Apply the patch, set the parameter to a value (either 'Show' or 'Hide'), either in the global component configuration, or when creating/editing a menulink to the com_finder component. Then check whether the search form is shown or not.

Expected result

Depending on the parameter, the search form will be shown or not.

Documentation Changes Required

No.

avatar continga continga - open - 24 Sep 2018
avatar continga continga - change - 24 Sep 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2018
Category Administration com_finder Language & Strings Front End
avatar continga continga - change - 24 Sep 2018
Labels Added: ? ?
avatar continga
continga - comment - 11 Nov 2018

Can we get this straight-forward change merged without the usual 2 tests till RTC thing? I don't think we will ever get 2 tests for this... That option has been missing from core since 2011, and I don't think anyone really cares if it is added... so can we just merge it, should be safe?

avatar brianteeman
brianteeman - comment - 11 Nov 2018

Don't you need to set the new defaults in the install and update SQL?

avatar mbabker
mbabker - comment - 11 Nov 2018

Don't you need to set the new defaults in the install and update SQL?

No on update SQLs, and as long as we aren't storing a default for the component params in the install SQLs and the PHP code matches the XML form default values then we're good with where everything's at.

avatar continga
continga - comment - 13 Nov 2018

Yep, as @mbabker said, we don't need it, as the components install doesn't store anything about it, see

(27, 0, 'com_finder', 'component', 'com_finder', '', 1, 1, 0, 0, '', '{"enabled":"0","show_description":"1","description_length":255,"allow_empty_query":"0","show_url":"1","show_autosuggest":"1","show_suggested_query":"1","show_explained_query":"1","show_advanced":"1","show_advanced_tips":"1","expand_advanced":"0","show_date_filters":"0","sort_order":"relevance","sort_direction":"desc","highlight_terms":"1","opensearch_name":"","opensearch_description":"","batch_size":"50","memory_table_limit":30000,"title_multiplier":"1.7","text_multiplier":"0.7","meta_multiplier":"1.2","path_multiplier":"2.0","misc_multiplier":"0.3","stem":"1","stemmer":"snowball","enable_logging":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),

and the php code matches the XML default value (see OP).

avatar continga
continga - comment - 9 Mar 2019

once again the question, can we maybe get this merged without the usual "2 tests till RTC"-thing? I don't think we will ever get 2 tests for this... That option has been missing from core since 2011, and I don't think anyone really cares if it is added... so can we just merge it, it should be pretty safe to add it?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Mar 2019

calling @Hackwar for com_finder and @HLeithner as Release Lead 3.9

avatar HLeithner
HLeithner - comment - 9 Mar 2019

I'm not sure why it's not possible to get 2 tests here?
btw. Travis failed I restarted it maybe that's enough.

maybe @chmst and @Quy would be so kind and test this.

avatar chmst chmst - test_item - 9 Mar 2019 - Tested successfully
avatar chmst
chmst - comment - 9 Mar 2019

I have tested this item successfully on d744580


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

avatar Quy
Quy - comment - 10 Mar 2019

I have tested this item successfully on d744580


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

avatar Quy Quy - test_item - 10 Mar 2019 - Tested successfully
avatar Quy Quy - change - 10 Mar 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Mar 2019

RTC


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2019
Category Administration com_finder Language & Strings Front End Administration com_finder Front End
avatar continga
continga - comment - 15 May 2019

Any chance to get this merged? Who do I need to poke? ;)

avatar brianteeman
brianteeman - comment - 15 May 2019

@HLeithner is the man

avatar HLeithner
HLeithner - comment - 15 May 2019

@continga sorry no new features for j3 please rebase for j4.

avatar HLeithner HLeithner - change - 15 May 2019
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2019-05-15 07:57:03
Closed_By HLeithner
Labels Removed: J3 Issue
avatar HLeithner HLeithner - close - 15 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 15 May 2019
Category Administration com_finder Front End Administration com_finder Language & Strings Front End

Add a Comment

Login with GitHub to post a comment