|
@@ -774,8 +774,11 @@ abstract class Admin implements AdminInterface
|
|
$parameters[$this->getParent()->getIdParameter()] = $this->request->get($this->getParent()->getIdParameter());
|
|
$parameters[$this->getParent()->getIdParameter()] = $this->request->get($this->getParent()->getIdParameter());
|
|
}
|
|
}
|
|
|
|
|
|
- // if the admin is linked to a FieldDescription (ie, embedded widget)
|
|
|
|
|
|
+ // if the admin is lnked to a parent FieldDescription (ie, embedded widget)
|
|
if ($this->hasParentFieldDescription()) {
|
|
if ($this->hasParentFieldDescription()) {
|
|
|
|
+ // merge link parameter if any provided by the parent field
|
|
|
|
+ $parameters = array_merge($parameters, $this->getParentFieldDescription()->getOption('link_parameters', array()));
|
|
|
|
+
|
|
$parameters['uniqid'] = $this->getUniqid();
|
|
$parameters['uniqid'] = $this->getUniqid();
|
|
$parameters['code'] = $this->getCode();
|
|
$parameters['code'] = $this->getCode();
|
|
$parameters['pcode'] = $this->getParentFieldDescription()->getAdmin()->getCode();
|
|
$parameters['pcode'] = $this->getParentFieldDescription()->getAdmin()->getCode();
|
|
@@ -789,7 +792,7 @@ abstract class Admin implements AdminInterface
|
|
|
|
|
|
// allows to define persistent parameters
|
|
// allows to define persistent parameters
|
|
$parameters = array_merge($this->getPersistentParameters(), $parameters);
|
|
$parameters = array_merge($this->getPersistentParameters(), $parameters);
|
|
-
|
|
|
|
|
|
+
|
|
$url = $this->getUrl($name);
|
|
$url = $this->getUrl($name);
|
|
|
|
|
|
if (!$url) {
|
|
if (!$url) {
|