After an update to the latest version of Views Bootstrap I noticed that the accordion had stopped working and it loaded the node page when the accordion was clicked.

After some searching i noticed there was a change in line 14 of the file - sites\all\modules\views_bootstrap\templates\accordion\theme.inc that was causing this. Changing it back cured the issue.

Is this change necessary?

Original
foreach ($vars['view']->result as $key => $field)

New
foreach (array_keys($vars['rows']) as $key)

Scott

CommentFileSizeAuthor
#5 uncheck.png107.13 KBAnatoliy Vorobyov
#3 uncheck.png50.41 KBishani.addweb

Comments

scareyclott created an issue. See original summary.

ikeigenwijs’s picture

Did not help for me.

ishani.addweb’s picture

Status: Active » Needs review
StatusFileSize
new50.41 KB

@ikeigenwijs,
I follow the process like, I first download the unstable version of the module & create one view in it.
> Then Update the module & check for the same view.
> After following this steps, Accordion works properly for me.
> Now To stop load node page on click of accordion please uncheck *-Link this field to the original piece of content* of the view field as shown in the image and try.
Thanks!.. Please provide your opinion on above mentioned solution.

chris matthews’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Category: Bug report » Support request
Anatoliy Vorobyov’s picture

StatusFileSize
new107.13 KB

In view settings please uncheck "Link this field to the original piece of content".

shelane’s picture

Status: Needs review » Closed (works as designed)

Anatoliy's answer is correct. Accordions will not work if the title is already linked to content.