Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Murray Roke 472 posts 880 karma points c-trib
    Jul 30, 2013 @ 07:07
    Murray Roke
    0

    Damp PreValues corrupted

    Hi

    I have DAMP installed (umbraco 4.11.8, Damp 2.0 that's what the prevalue editor page says, usitebiulder admin version 1.0.11-alpha)

    When I export the datatype I get:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using umbraco.cms.businesslogic.datatype;
    using Vega.USiteBuilder;
    namespace Terabyte.UmbracoWebsite.DataTypes
    {
        [DataType(Name = "Multi File Picker", UniqueId = "6e6fe001-0ad9-4d56-aef7-c9e600b02fed", RenderControlGuid = "ef94c406-9e83-4058-a780-0375624ba7ca", DatabaseDataType = DBTypes.Ntext)]
        public partial class MultiFilePicker : DataTypeBase
        {
            public override DataTypePrevalue[] Prevalues
            {
                get
                {
                    return new DataTypePrevalue[]
                    {
                        new DataTypePrevalue("", "fullMedia"),
    new DataTypePrevalue("", "picker"),
    new DataTypePrevalue("", "-1"),
    new DataTypePrevalue("", ""),
    new DataTypePrevalue("", "True"),
    new DataTypePrevalue("", ""),
    new DataTypePrevalue("", "1033,1032"),
    new DataTypePrevalue("", "1033,1031,1032"),
    new DataTypePrevalue("", "1033"),
    new DataTypePrevalue("", "False"),
    new DataTypePrevalue("", "True"),
    new DataTypePrevalue("", "-1"),
    new DataTypePrevalue("", "-1"),
    new DataTypePrevalue("", ""),
    new DataTypePrevalue("", ""),
    new DataTypePrevalue("", "100"),
    new DataTypePrevalue("", "100"),
    new DataTypePrevalue("", "False"),
    new DataTypePrevalue("", "True"),
    new DataTypePrevalue("", "True")
                    };
                }
            }
        }
    }

    which doesn't look right,

    And when I sync again all the prevalues are all wrong.

     

  • Murray Roke 472 posts 880 karma points c-trib
    Jul 30, 2013 @ 07:18
    Murray Roke
    0

    If I compare a corrupt and un-corrupt version of the table like so

    /****** Script for SelectTopNRows command from SSMS  ******/

    SELECT TOP 1000 [id]

          ,[datatypeNodeId]

          ,[value]

          ,[sortorder]

          ,[alias]

      FROM [CCTResponsive].[dbo].[cmsDataTypePreValues]

      where datatypenodeid = 1074

    I see that the sortOrder column has not been maintained, it simply sets these values to sequential whereas in the source they were not.

    I'm guessing your export needs a "order by sortOrder" clause

Please Sign in or register to post replies

Write your reply to:

Draft