diff --git a/src/InputOutput/IHMImpl/TimeTables/IHMInputOutputTTClass.php b/src/InputOutput/IHMImpl/TimeTables/IHMInputOutputTTClass.php index 3b94c5c..7baf03b 100644 --- a/src/InputOutput/IHMImpl/TimeTables/IHMInputOutputTTClass.php +++ b/src/InputOutput/IHMImpl/TimeTables/IHMInputOutputTTClass.php @@ -39,15 +39,17 @@ class IHMInputOutputTTClass implements InputOutputInterface { //create a list of data to treat $processData = new TTRequestDataClass(); - if (strpos($tt->id,"sharedtimeTable_") === 0) { - //Shared TimeTable - $result = IHMSharedObjectsClass::getPath("timeTable", $tt->id); + + if (strpos($tt->id,"sharedtimeTable_") === 0 || strpos($tt->id,"sharedcatalog_") === 0) { + //Shared TimeTable /Catalog + $objectType = strpos($tt->id,"timeTable") != 0 ? "timeTable" : "catalog"; + $result = IHMSharedObjectsClass::getPath($objectType, $tt->id); if (!$result['success']) - throw new Exception('Shared TimeTable '.$tt->name.' not found'); + throw new Exception('Shared '.$objectType.' '.$tt->name.' not found'); $ttName = $result['path']; } else { - //User TimeTable + //User TimeTable / Catalog $ttName = IHMConfigClass::getUserTTPath().$tt->id.'.xml'; } if (!file_exists($ttName)) -- libgit2 0.21.2