File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -160,16 +160,16 @@ public function __construct(
160
160
public function locationViewAction (Request $ request , ContentView $ view ): ContentView
161
161
{
162
162
$ location = $ view ->getLocation ();
163
- if ($ location === null || $ location ->id === null ) {
164
- $ contentId = $ view ->getContent ()->id ?? 'unknown ' ;
163
+ if ($ location === null || $ location ->getId () === null ) {
164
+ $ contentId = $ view ->getContent ()->getId () ?? 'unknown ' ;
165
165
throw new NotFoundException ('Location ' , "content ID {$ contentId }" );
166
166
}
167
167
168
168
// We should not cache ContentView because we use forms with CSRF tokens in template
169
169
// JIRA ref: https://issues.ibexa.co/browse/EZP-28190
170
170
$ view ->setCacheEnabled (false );
171
171
172
- if (!$ view ->getContent ()->contentInfo ->isTrashed ()) {
172
+ if (!$ view ->getContent ()->getContentInfo () ->isTrashed ()) {
173
173
$ this ->supplyPathLocations ($ view );
174
174
$ this ->subitemsContentViewParameterSupplier ->supply ($ view );
175
175
$ this ->supplyContentActionForms ($ view );
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function matchItem(ItemInterface $item): ?bool
37
37
if ($ contentView instanceof ContentView) {
38
38
$ location = $ contentView ->getLocation ();
39
39
if ($ location !== null ) {
40
- $ path = $ location ->path ?? [$ location ->id ];
40
+ $ path = $ location ->getPath () ?? [$ location ->getId () ];
41
41
42
42
if (in_array ($ locationId , $ path , true )) {
43
43
return true ;
You can’t perform that action at this time.
0 commit comments