Double insert "issue" ?

Please report bugs here!

Moderator: Thorsten

Post Reply
Finalmarco
Posts: 8
Joined: Sun Feb 28, 2016 2:37 pm

Double insert "issue" ?

Post by Finalmarco » Mon Mar 21, 2016 9:37 am

Hello
I have this annoyng issue on the category faq block.

If i made a FAq shared to different groups the link is always going to duplicate or more (related to ne number of group is shared to)

I think it can be fixed touching the block class query, but i have no idea where is it.
Have someone experienced and fixed this issue ?

Thanks !
You do not have the required permissions to view the files attached to this post.

Thorsten
Posts: 14611
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Double insert "issue" ?

Post by Thorsten » Mon Mar 21, 2016 2:54 pm

Hi,

I think there's an issue with aggregating the data. Which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Finalmarco
Posts: 8
Joined: Sun Feb 28, 2016 2:37 pm

Re: Double insert "issue" ?

Post by Finalmarco » Mon Mar 21, 2016 3:44 pm

Hi Thorsten !

2.8.25 :)

Thorsten
Posts: 14611
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Double insert "issue" ?

Post by Thorsten » Tue Mar 22, 2016 7:34 pm

Hi,

I will check it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Finalmarco
Posts: 8
Joined: Sun Feb 28, 2016 2:37 pm

Re: Double insert "issue" ?

Post by Finalmarco » Thu Mar 24, 2016 12:56 pm

Hi Thorsten

I "fix" the "issue",
I caused it trying to remove the the view Count following this post
viewtopic.php?f=2&t=14475#p41799

You suggested this modify

Code: Select all

  $renderedItems[] = sprintf(
                    '<li%s>%s<span id="viewsPerRecord"><br /><small>(%s)</small></span></li>',
                    ($row->sticky == 1) ? ' class="sticky-faqs"' : '',
                    $oLink->toHtmlAnchor(),
                    $this->plr->GetMsg('plmsgViews', $visits)
                );
To "fix it" i modified the row adding $row->id and now looks working.

Code: Select all

$renderedItems[$row->id] = sprintf(

Finalmarco
Posts: 8
Joined: Sun Feb 28, 2016 2:37 pm

Re: Double insert "issue" ?

Post by Finalmarco » Thu Mar 24, 2016 1:06 pm

Update,
I fixed duplicated in the index.php?action=show page, but in the block still (i need to know where is the class :P) but i'm lazy so i just hide it from the template :)

Thorsten
Posts: 14611
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Double insert "issue" ?

Post by Thorsten » Fri Mar 25, 2016 7:54 am

Hi,

I'm working on it!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest