Loading...
 
Skip to main content

Favorites are difficult to use

Status
Pending
Subject
Favorites are difficult to use
Version
21.x Regression
Category
  • Bug
Feature
User Preferences
Resolution status
Please retest
Submitted by
Jean-Marc Libs
Volunteered to solve
Jonny Bradley
Lastmod by
Jean-Marc Libs
Rating
(0)
Description

Issue 1

When I put this:

Copy to clipboard
{favorite objectType="wiki" objectId="PluginFavorite"}

in a wiki page as documented here: https://doc.tiki.org/PluginFavorite, the star can be toggled on and off but in the database I get lines like:
INSERT INTO `tiki_object_relations` VALUES (301,'tiki.user.favorite','user','admin','wiki','mypage');
Instead of :
INSERT INTO `tiki_object_relations` VALUES (301,'tiki.user.favorite','user','admin','wiki page','mypage');

This means that when I put the following code in another page as documented here: https://doc.tiki.org/Favorites:

Copy to clipboard
{LIST()} {filter favorite="{ {user} }"} {LIST}

I match nothing.

Issue 2

When I click on a favorite, the LIST plugin is not updated until I do a manual « index:rebuild ».

It will probably be necessary to fix Issue 1 before Issue 2 can be reproduced 😑

Due to an UX issue, I created the show instance separately

http://jyhem-9952-15.show2.tikiwiki.org

Solution

Hopefully fixed in 8a7b5256 (trunk) and backported to 23/22/21

Importance
9
Easy to solve?
5
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7894
Created
Wednesday 27 October, 2021 22:24:38 UTC
by Jean-Marc Libs
LastModif
Friday 29 October, 2021 17:25:24 UTC


Show PHP error messages