TemplateTree: do not fail on unstored object

This commit is contained in:
Thomas Gelf 2017-08-21 08:09:01 +02:00
parent 466a229041
commit 8bc26ccb97
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ class TemplateTree
// Special, this is for calls from onStore()
return $this->getAncestorsById($id);
} else {
throw new NotImplementedError('Not yet');
return [];
// TODO: Figure out whether to implement this:
// throw new NotImplementedError('Not yet');
// return $this->getAncestorsForUnstoredObject($object);
}
}