Loading...
 
Features / Usability

Features / Usability


Tracker items not visible after upgrade for site with multidomain and perspectives

posts: 6 Australia

Hi,

I am testing an upgrade from my current site running v6.4 and have multi-domain set up for two domains ('dom1' and 'dom2') with associated perspectives enabled. The perspective module allows me to switch between 'Default', 'dom1', and 'dom2'.
After upgrade the items of a several trackers which have permissions for everyone to view are no longer showing up with the associated perspective 'dom1', but do display when I switch to the "default" perspective. The trackers have a category assigned which is the same category that is used as CategoryJail for the dom1 perspective.

When I view trackers I can see there are 190 items in one specific tracker (tracker12), but when I select tracker12 it shows Items=0 after the page loads. Reloading the page after appending "&perspective=0" to the url shows Items=190 and lists them.

The Trackers listed for a given perspective respect the category jail, but just will not display their items for perspective=1. The single tracker for perspective=2 shows its items. A newly created perspective with a different category jail still will not display tracke12's items.

All the settings appear the same as in the previous version where the tracker items displayed as expected. Menus associated with the perspectives 0 (Default), 1 (dom1), and 2 (dom2) all display as expected, so the fundamentals of the perspectives seem to be in place and OK.

Some settings:
- Category jail root = 0
- In Edit perspectives:
- Category jail (dom1) = 34
- Category jail (dom2) = 33
-multidomain Config: dom1,1
dom2,2
'Tracker12' category: 'GroupCat' -> Category ID=34

Any suggestions appreciated.

Thanks,
Gary

posts: 6 Australia

In the absence of other advice I have been trying to figure out how to use the Smarty Debug Console to try and get a bit more information on what is going on re permissions on the tracker items.
To reiterate briefly: when I am in a perspective with category jail # equal to the tracker category, I get $itemcount=0 (the number of tracker items I am allowed to see), but when in the 'Default' perspective I get $itemcount=190.

I saw https://doc.tiki.org/Permission-Enforcement-Order indicating tracker items could have a category but this doesn't look consistent with the trackerfield info I can see in the Debug console and my understanding of how trackers are put together.

I tried using this snippet "$myarray=Perms::get'type' = 'trackeritem', 'object' = 792" in tiki-view_tracker.php, where 792 is the itemId of a tracker item that should be visible, to get some more info on the permissions but the page would not load, either because of my poor php or because I didn't include something I should have.

Can anyone suggest some code that would run in this file to get the extra permission/category info?

Thanks,
Gary

grg111 wrote:

Hi,

I am testing an upgrade from my current site running v6.4 and have multi-domain set up for two domains ('dom1' and 'dom2') with associated perspectives enabled. The perspective module allows me to switch between 'Default', 'dom1', and 'dom2'.
After upgrade the items of a several trackers which have permissions for everyone to view are no longer showing up with the associated perspective 'dom1', but do display when I switch to the "default" perspective. The trackers have a category assigned which is the same category that is used as CategoryJail for the dom1 perspective.

When I view trackers I can see there are 190 items in one specific tracker (tracker12), but when I select tracker12 it shows Items=0 after the page loads. Reloading the page after appending "&perspective=0" to the url shows Items=190 and lists them.

The Trackers listed for a given perspective respect the category jail, but just will not display their items for perspective=1. The single tracker for perspective=2 shows its items. A newly created perspective with a different category jail still will not display tracke12's items.

All the settings appear the same as in the previous version where the tracker items displayed as expected. Menus associated with the perspectives 0 (Default), 1 (dom1), and 2 (dom2) all display as expected, so the fundamentals of the perspectives seem to be in place and OK.

Some settings:
- Category jail root = 0
- In Edit perspectives:
- Category jail (dom1) = 34
- Category jail (dom2) = 33
-multidomain Config: dom1,1
dom2,2
'Tracker12' category: 'GroupCat' - Category ID=34

Any suggestions appreciated.

Thanks,
Gary