diff --git a/web_service/ws/Workspace.class.inc b/web_service/ws/Workspace.class.inc index 267f7b4811aa535e545f712f68277ae0dad50f4c..d85b36b486e6988fa8762daa698ff695a0f7b6ac 100755 --- a/web_service/ws/Workspace.class.inc +++ b/web_service/ws/Workspace.class.inc @@ -229,8 +229,11 @@ class Workspace extends GTF { $this->aFields = $this->getFields($this->aProperties['schema_gtf'], "v_workspace", "workspace_id"); $this->getGroups(); // Url vers le fichier fmw du projet. - if (!empty($this->aFields['fmw_file'])) - $this->aFields['fmw_file_url'] = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/gtf/workspace/' . $this->aValues['my_vitis_id'] . '/fme/' . $this->aFields['fmw_file']; + if (!empty($this->aFields['fmw_file'])) { + $sFmwFileUrl = getFileUrlInWsDataDir('gtf', 'workspace', $this->aValues['my_vitis_id'], 'fme', $this->aFields['fmw_file']); + if ($sFmwFileUrl !== false) + $this->aFields['fmw_file_url'] = $sFmwFileUrl; + } } // Formatage de la colonne "form_type". $sFile = $this->aProperties['workspace_dir'] . "/" . $this->aValues["my_vitis_id"] . '/form/Subform.json';