diff --git a/core/modules/Node/Form/FormNode.php b/core/modules/Node/Form/FormNode.php
index a4c01522..a56ea423 100644
--- a/core/modules/Node/Form/FormNode.php
+++ b/core/modules/Node/Form/FormNode.php
@@ -230,10 +230,11 @@ public function makeOneToMany($form, $key, $value, $options)
}
$subFields = $data->fetchAll();
- $form->group("$key-group", 'div', function ($form) use ($key, $subFields, $options) {
+ $dir = $this->router->getBasePath();
+ $form->group("$key-group", 'div', function ($form) use ($key, $subFields, $options, $dir) {
foreach ($subFields as $field) {
$idEntity = $field[ "{$key}_id" ];
- $form->group("$key-$idEntity-group", 'div', function ($form) use ($key, $idEntity, $options, $field) {
+ $form->group("$key-$idEntity-group", 'div', function ($form) use ($key, $idEntity, $options, $field, $dir) {
if (isset($options[ 'order_by' ]) && $options[ 'sort' ] == 'weight') {
$form->html("$key-$idEntity-drag", '')
->hidden("{$key}[$idEntity][weight]", [
@@ -245,7 +246,7 @@ public function makeOneToMany($form, $key, $value, $options)
$content = $field[ $options[ 'field_show' ] ];
if ($this->isShowFile($options, $field)) {
- $src = $field[ $options[ 'field_type_show' ] ];
+ $src = $dir . $field[ $options[ 'field_type_show' ] ];
$content = "";
}