We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb442cd commit 54c9fc7Copy full SHA for 54c9fc7
eFormAPI/eFormAPI/Controllers/TemplatesController.cs
@@ -156,7 +156,10 @@ public OperationResult Create(EFormXmlModel eFormXmlModel)
156
if (newTemplate == null) throw new Exception("eForm could not be created!");
157
// Set tags to eform
158
core.TemplateCreate(newTemplate);
159
- core.TemplateSetTags(newTemplate.Id, eFormXmlModel.TagIds);
+ if (eFormXmlModel.TagIds != null)
160
+ {
161
+ core.TemplateSetTags(newTemplate.Id, eFormXmlModel.TagIds);
162
+ }
163
return new OperationResult(true, $"eForm \"{newTemplate.Label}\" created successfully");
164
}
165
catch (Exception e)
0 commit comments