From 4d8a55fb176fb6170b2786027237ac185fffb1b3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 7 Jan 2019 15:05:56 +0100 Subject: [PATCH] Handle VFS full path when generating VFS select contents --- api/src/Etemplate/Widget/Vfs.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/src/Etemplate/Widget/Vfs.php b/api/src/Etemplate/Widget/Vfs.php index d2d45a49c2..4d270a9129 100644 --- a/api/src/Etemplate/Widget/Vfs.php +++ b/api/src/Etemplate/Widget/Vfs.php @@ -416,6 +416,11 @@ class Vfs extends File } } } + //handle VFS full path + if ($params['path'][0] != '/' && substr($params['path'], 0, 13) == Api\Vfs::PREFIX) + { + $params['path'] = substr($params['path'], 13); + } if (!is_array($content)) {