|
@@ -1069,7 +1069,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
*/
|
|
*/
|
|
public function generateObjectUrl($name, $object, array $parameters = array(), $absolute = false)
|
|
public function generateObjectUrl($name, $object, array $parameters = array(), $absolute = false)
|
|
{
|
|
{
|
|
- $parameters['id'] = $this->getNormalizedIdentifier($object);
|
|
|
|
|
|
+ $parameters['id'] = $this->getUrlsafeIdentifier($object);
|
|
|
|
|
|
return $this->generateUrl($name, $parameters, $absolute);
|
|
return $this->generateUrl($name, $parameters, $absolute);
|
|
}
|
|
}
|
|
@@ -2336,6 +2336,14 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
return $this->securityHandler->isGranted($this, $name, $object ?: $this);
|
|
return $this->securityHandler->isGranted($this, $name, $object ?: $this);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * {@inheritdoc}
|
|
|
|
+ */
|
|
|
|
+ public function getUrlsafeIdentifier($entity)
|
|
|
|
+ {
|
|
|
|
+ return $this->getModelManager()->getUrlsafeIdentifier($entity);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* {@inheritdoc}
|
|
* {@inheritdoc}
|
|
*/
|
|
*/
|