Commit ff9a9bbff1df93cfe184e8b42675c8f2630e68d9

Authored by Benjamin Renard
1 parent aa23703f

Fix TT operation with shared TT (#9497)

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
php/classes/TimeTableMgr.php
... ... @@ -359,7 +359,7 @@ class TimeTableMgr extends AmdaObjectMgr
359 359  
360 360 $intervals = 0;
361 361 for ($iId = 0; $iId < count($obj->ids); $iId++) {
362   - $table[$iId] = $this->loadIntervalsFromObject($obj->ids[$iId]);
  362 + $table[$iId] = $this->loadIntervalsFromObject($obj->ids[$iId]->id, $obj->ids[$iId]->nodeType);
363 363 for ($jId = 0; $jId < count($table[$iId]['intervals']); $jId++) {
364 364 $interval[$iId][$jId][0] = $table[$iId]['intervals'][$jId]['start'];
365 365 $interval[$iId][$jId][1] = $table[$iId]['intervals'][$jId]['stop'];
... ... @@ -559,7 +559,7 @@ class TimeTableMgr extends AmdaObjectMgr
559 559 {
560 560 $intervals = 0;
561 561 for ($iId = 0; $iId < count($obj->ids); $iId++) {
562   - $table[$iId] = $this->loadIntervalsFromObject($obj->ids[$iId]);
  562 + $table[$iId] = $this->loadIntervalsFromObject($obj->ids[$iId]->id, $obj->ids[$iId]->nodeType);
563 563 for ($jId = 0; $jId < count($table[$iId]['intervals']); $jId++) {
564 564 $interval[$iId][$jId][0] = $table[$iId]['intervals'][$jId]['start'];
565 565 $interval[$iId][$jId][1] = $table[$iId]['intervals'][$jId]['stop'];
... ...