Project

General

Profile

Actions

Bug #23146

open

Show better errors when template kind is missing on provisioning template import

Added by Ondřej Pražák about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When a provisioning template is being imported, the `import_custom_data` associates template kind based on metadata. If kind is not found, a message for :template_kind_id is added but subsequent save call overwrites the message with a validation error.

Steps to reproduce:
1) try importing a template with nonexisting template kind in metadata

Actual results: template.errors #=> :template_kind_id => "can't be blank"
Expected results: template.errors #=> :template_kind_id => "specified template XYZ kind was not found"

No data to display

Actions

Also available in: Atom PDF