Chauffeur not adding new crop sizes when updating a data type deriving from Umbraco.ImageCropper.
WillRay opened this issue · 4 comments
WillRay commented
Chauffeur doesn't seem to be adding new crop sizes from exported packages.
In the example below, "relatedPost" and "postHeader" were the new sizes to be added.
Delivery file
p 005-ArticulateCropper
005-ArticulateCropper.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<umbPackage>
<files />
<info>
<!-- info omitted-->
</info>
<DocumentTypes />
<Templates />
<Stylesheets />
<Macros />
<DictionaryItems />
<Languages />
<DataTypes>
<DataType Name="Articulate Cropper" Id="Umbraco.ImageCropper" Definition="c8f535ee-27b8-4d16-940d-d6c523851bb1" DatabaseType="Ntext">
<PreValues>
<PreValue Id="71" Value="[
 {
 "alias": "blogPost",
 "width": 200,
 "height": 200
 },
 {
 "alias": "thumbnail",
 "width": 50,
 "height": 50
 },
 {
 "width": 400,
 "height": 200,
 "alias": "relatedPost"
 },
 {
 "alias": "postHeader",
 "width": 1600,
 "height": 400
 }
]" Alias="crops" SortOrder="0" />
</PreValues>
</DataType>
</DataTypes>
</umbPackage>
aaronpowell commented
So this should be updating the PreValue
of the DataType
but it doesn't?
WillRay commented
Correct. The values remain unchanged.
aaronpowell commented
I've created a test that replicates it and am looking into it. My guess is that Umbraco is being non-destructive on the import process so I'll have to manually import the PreValue.
WillRay commented
The pre-release package 1.3.0-pre-value--171
fixed this issue. Thanks!