Skip to content
Snippets Groups Projects
Commit 1f9e3c17 authored by b.ulrich's avatar b.ulrich
Browse files

COmmit, jetzt noch testen

parent b72eedc6
No related branches found
No related tags found
No related merge requests found
......@@ -256,6 +256,13 @@ DocumentTemplate.loadTemplate = function (pAssignmentRowId, pAssignmentTable, pR
var template = DocumentTemplateUtils.getTemplate(templateId, pResolveSubtemplates);
if (template == null)
{
if(vars.getString("$sys.isserver") == "true")
throw new Error("loadTemplate: File from this template could not be found anymore. "
+ "Please go to the template and upload a new file. TemplateID: '" + templateId + "'")
else
question.showMessage(translate.text("File from this template could not be found anymore. "
+ "Please go to the template and upload a new file."), question.ERROR, translate.text("Error"));
return null;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment