-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Bug]: the default value is not used for mandatory fields #15311
Copy link
Copy link
Closed
Description
Expected behavior
The default value is set on the (newly created) DataObject
Actual behavior
Pimcore\Model\Element\ValidationException: Empty mandatory field [ fieldName ]
Steps to reproduce
With (currently latest versions) Pimcore v10.5.20, DataHub v1.5.6 and DataImporter v1.7.5
- Create a class definition, with
a. Mark one field as mandatory field and also give it a default value (e.g. a status dropdown with default value "New") - Create a data importer definition, with
a. Resolver configuration with a valid "Element Creation" config
b. Resolver configuration publish strategy set to "Always publish" or "Publish new"
c. Valid mapping configuration so that it can create new DataObjects (mainly, the system key should be set)
d. Important: don't map the field created in step 1a. - Run an import
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.