Skip to content
Snippets Groups Projects
Commit c568d46e authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

FIX bug that causes Error when COPYUSER FCN is off and a broken

toolbox appears
parent 5b4287ed
No related branches found
No related tags found
1 merge request!50Draft: FIX bug that causes Error when COPYUSER FCN is off and a broken
Pipeline #635047 passed
......@@ -170,8 +170,8 @@ dlgObj.scriptPublished =status;
dlgObj.userMSG(msg);
% user functions
[fList,pList] = matlab.codetools.requiredFilesAndProducts(scriptPath);
if options.CopyUserFCN
if options.CopyUserFCN
[fList,pList] = matlab.codetools.requiredFilesAndProducts(scriptPath);
fList = fList(~ismember(fList,scriptPath)); % rmv script from list
fList = fList(~contains(fList,'config.json')); % rmv config.json from list
fList = PlotID.removePltIdFiles(fList); % Do not copy files that are part of PlotID
......@@ -248,8 +248,9 @@ end
meta.ProjectID = ID;
meta.CreationDate = datestr(now);
meta.MatlabVersion = version;
meta.ToolboxVersions = pList;
if options.CopyUserFCN
meta.ToolboxVersions = pList;
end
% write meta
metaPath = fullfile(storPath,folderName,'plotID_data.json');
fid = fopen(char(metaPath),'w');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment