I had the strange problem that i didn't saw three slideshows i made. then checked the screens itself. On some i had a permission denied.
After searching around a bit in the php code, i found the reason.
In the file include/screens.inc.php (Line 39) we have this code:
The problem now is that the isset function checks the key and not the value (what it should). The key is an increasing value starting at 0 only, and not the id of the graph!
After searching around a bit in the php code, i found the reason.
In the file include/screens.inc.php (Line 39) we have this code:
Code:
case SCREEN_RESOURCE_GRAPH:
if(!isset($graphids)){
$options = array();
$options['nodeids'] = get_current_nodeid(true);
if($perm == PERM_READ_WRITE) $options['editable'] = 1;
$graphids = CGraph::get($options);
// $graphids = get_accessible_graphs($perm,array(),null,get_current_nodeid(true));
}
$result &= isset($graphids[$ac_data['resourceid']]);
break;
Comment