? ? Pending

User tests: Successful: Unsuccessful:

avatar weeblr
weeblr
26 May 2017

Notice errors are displayed when "Contact information" is disabled, and either Slides or Tabs display format is used.

Summary of Changes

When displaying com_contact "contact" view, using either Tabs or Sliders display format, multiple notices are thrown by PHP, if "Contact information" is disabled. It happens because the Accordion or the Tab set is only created when "Contact information" is displayed, and therefore is missing if "Contact information" is hidden.

This PR tracks the opening of Accordion and Tab set, and make to open then if it has not been done yet.

Testing Instructions

  1. Create a com_contact menu item of type Single contact

  2. Under Contact display options, select Sliders as the Display format.

  3. Under Contact display options, set Contact information to Hide

  4. In Joomla configuration, set Error reporting to Maximum

  5. Visit the front end using that menu item

  6. Perform the same test when selecting Tabs as the Display format

Expected result

The contact form with no error.

Actual result

You will get notices `errors:

Notice: Undefined index: JHtmlBootstrap::startAccordion in  /src/main/libraries/cms/html/bootstrap.php on line 687

Notice: Undefined index: JHtmlBootstrap::startAccordion in /src/main/libraries/cms/html/bootstrap.php on line 688

Notice: Undefined index: JHtmlBootstrap::startAccordion in /src/main/libraries/cms/html/bootstrap.php on line 689

Documentation Changes Required

avatar weeblr weeblr - open - 26 May 2017
avatar weeblr weeblr - change - 26 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 May 2017
Category Front End com_contact
avatar weeblr weeblr - change - 26 May 2017
Labels Added: ?
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2017

I have tested this item successfully on 2eb78f3


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 26 May 2017 - Tested successfully
avatar richard67
richard67 - comment - 26 May 2017

I have tested this item successfully on 1cc64c4

Tested with success.
Had to clear Joomla cache all the time after having changed the display format, but that's another issue.


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

avatar richard67 richard67 - test_item - 26 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2017

RTC after two successful tests.

avatar Quy
Quy - comment - 26 May 2017

Please remove RTC. There are many coding style issues to be fixed.

avatar infograf768
infograf768 - comment - 26 May 2017

Concerning the coding style issue:
It is indeed necessary to use tabs for indentation and a space after if, but it is not necessary to add a white line before <?php if (

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2017
Status Ready to Commit Pending
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2017

Status set on "Pending".

avatar infograf768
infograf768 - comment - 26 May 2017

should be OK, now.

avatar Quy
Quy - comment - 26 May 2017

I have tested this item successfully on 2659bac


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

avatar Quy Quy - test_item - 26 May 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2017

I have tested this item successfully on 2659bac


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 26 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 27 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-27 06:50:23
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 27 May 2017
avatar rdeutz rdeutz - merge - 27 May 2017

Add a Comment

Login with GitHub to post a comment