COU-165 - 2.50.* Dictionary item hierarchy not preserved

Created by Paul Sterling 03 Aug 2015, 19:50:09 Updated by Shannon Deminick 24 Aug 2015, 16:15:26

Dictionary items organized in a "tree" structure with hierarchy are not preserved - the structure is flattened on deployment.

Comments

Shannon Deminick 24 Aug 2015, 14:58:54

In 7.2.8, the hierarchy is not preserved but no errors are thrown, however in 7.3 it is not possible to send over a dictionary item + children as an exception occurs because it's trying to insert the child before the parent:

nnerException: HResult=-2146232832 Message=could not update: [Umbraco.Courier.Persistence.V6.NHibernate.EntityClasses.CmsDictionary#1][SQL: UPDATE cmsDictionary SET id = ?, "key" = ?, parent = ? WHERE pk = ?] Source=NHibernate SqlString=UPDATE cmsDictionary SET id = ?, "key" = ?, parent = ? WHERE pk = ? StackTrace:

ErrorCode=-2147467259 HResult (System.Exception)=-2147467259 HResult=-2147217873 Message=A foreign key value cannot be inserted because a corresponding primary key value does not exist. [ Foreign key constraint name = FK_cmsDictionary_cmsDictionary_id ] NativeError=25026 Source=SQL Server Compact ADO.NET Data Provider


Shannon Deminick 24 Aug 2015, 16:13:30

I've fixed these, just need to test with 7.2.8 now


Shannon Deminick 24 Aug 2015, 16:15:26

Yup works there too so all good.


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 2.51.0

Sprint:

Story Points:

Cycle: