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 »

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: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Double insert "issue" ?

Post by Thorsten »

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 »

Hi Thorsten !

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

Re: Double insert "issue" ?

Post by Thorsten »

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 »

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 »

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: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Double insert "issue" ?

Post by Thorsten »

Hi,

I'm working on it!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply