Ok figured out the problem.
Because the rpi is a new style MD I needed to let lmce-admin know that. Added
$GLOBALS['rootRPIMediaDirectorsID'] = 2216; // Raspberry PI Media Directors
in hardCoded.php
and then had to make that a choice option when checking for MDs. Changed in utils.inc.php
if($row['FK_DeviceCategory']==$GLOBALS['CategoryCore'] || $row['FK_DeviceTemplate']==$GLOBALS['rootMediaDirectorsID']){
to
if($row['FK_DeviceCategory']==$GLOBALS['CategoryCore'] || $row['FK_DeviceTemplate']==$GLOBALS['rootMediaDirectorsID'] || $row['FK_DeviceTemplate']==$GLOBALS['rootRPIMediaDirectorsID']){
under
function getTopLevelParent($deviceID,$dbADO)
That was causing my problem. Also changed same line under
function getTopLevelParentIP($deviceID,$dbADO)
And changed under
function isMediaDirector($deviceID,$dbADO,$mdOnly=0)
this line
if($DeviceTemplate==$GLOBALS['rootMediaDirectorsID']){
To this
if($DeviceTemplate==$GLOBALS['rootMediaDirectorsID'] || $DeviceTemplate==$GLOBALS['rootRPIMediaDirectorsID']){
I haven't tested it too much yet but appears to work.
Let me knwo if you need anything more.
Jim