Sets _format attribute only if it wasn't set previously by the user.
Fixes #8787
This commit is contained in:
parent
2872f839ad
commit
fa35597755
@ -54,6 +54,12 @@ class InlineFragmentRenderer extends RoutableFragmentRenderer
|
|||||||
// below instead)
|
// below instead)
|
||||||
$attributes = $reference->attributes;
|
$attributes = $reference->attributes;
|
||||||
$reference->attributes = array();
|
$reference->attributes = array();
|
||||||
|
|
||||||
|
// Except "_format" attribute
|
||||||
|
if (isset($attributes['_format'])) {
|
||||||
|
$reference->attributes['_format'] = $attributes['_format'];
|
||||||
|
}
|
||||||
|
|
||||||
$uri = $this->generateFragmentUri($uri, $request);
|
$uri = $this->generateFragmentUri($uri, $request);
|
||||||
$reference->attributes = array_merge($attributes, $reference->attributes);
|
$reference->attributes = array_merge($attributes, $reference->attributes);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user