Work items: 30142
This commit is contained in:
@@ -142,17 +142,30 @@ namespace umbraco.cms.businesslogic
|
||||
//by-passes a lot of queries just to determine if this is a true/false data type
|
||||
|
||||
string sql = "select " +
|
||||
"cmsDataType.controlId " +
|
||||
"cmsDataType.controlId, masterContentType.alias as masterAlias " +
|
||||
"from " +
|
||||
" cmsContentType " +
|
||||
"cmsContentType " +
|
||||
"inner join cmsPropertyType on (cmsContentType.nodeId = cmsPropertyType.contentTypeId) " +
|
||||
"inner join cmsDataType on (cmsPropertyType.dataTypeId = cmsDataType.nodeId) " +
|
||||
" where cmsContentType.alias = @contentTypeAlias and cmsPropertyType.Alias = @propertyAlias";
|
||||
//grab the controlid
|
||||
Guid controlId = Application.SqlHelper.ExecuteScalar<Guid>(sql,
|
||||
"left join cmsDataType on (cmsPropertyType.dataTypeId = cmsDataType.nodeId) and cmsPropertyType.Alias = @propertyAlias " +
|
||||
"left join cmsContentType masterContentType on masterContentType.nodeid = cmsContentType.masterContentType " +
|
||||
"where cmsContentType.alias = @contentTypeAlias";
|
||||
//grab the controlid or test for parent
|
||||
Guid controlId = Guid.Empty;
|
||||
var reader = Application.SqlHelper.ExecuteReader(sql,
|
||||
Application.SqlHelper.CreateParameter("@contentTypeAlias", contentTypeAlias),
|
||||
Application.SqlHelper.CreateParameter("@propertyAlias", propertyTypeAlias)
|
||||
);
|
||||
if (reader.Read())
|
||||
{
|
||||
if (!reader.IsNull("controlId"))
|
||||
controlId = reader.GetGuid("controlId");
|
||||
else if (!reader.IsNull("masterAlias") && !String.IsNullOrEmpty(reader.GetString("masterAlias")))
|
||||
{
|
||||
controlId = GetDataType(reader.GetString("masterAlias"), propertyTypeAlias);
|
||||
}
|
||||
}
|
||||
reader.Close();
|
||||
|
||||
//add to cache
|
||||
_propertyTypeCache.Add(key, controlId);
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
<Examine configSource="config\ExamineSettings.config" />
|
||||
<ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />
|
||||
<appSettings>
|
||||
<add key="umbracoDbDSN" value="server=.\sqlexpress;database=v452;integrated security=false;user id=DBUSER;password=DBPASSWORD" />
|
||||
<add key="umbracoConfigurationStatus" value="4.5.2.beta" />
|
||||
<add key="umbracoDbDSN" value="server=.\sqlexpress;database=v47;integrated security=false;user id=DBUSER;password=DBPASSWORD" />
|
||||
<add key="umbracoConfigurationStatus" value="4.7.0.RC" />
|
||||
<add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd" />
|
||||
<add key="umbracoReservedPaths" value="~/umbraco,~/install/" />
|
||||
<add key="umbracoContentXML" value="~/App_Data/umbraco.config" />
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
<!-- Set up a local connection string -->
|
||||
<xsl:template match="/configuration/appSettings/add[@key='umbracoDbDSN']/@value">
|
||||
<xsl:attribute name="value">server=.\sqlexpress;database=v452;integrated security=false;user id=DBUSER;password=DBPASSWORD</xsl:attribute>
|
||||
<xsl:attribute name="value">server=.\sqlexpress;database=v47;integrated security=false;user id=DBUSER;password=DBPASSWORD</xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/configuration/appSettings/add[@key='umbracoConfigurationStatus']/@value">
|
||||
<xsl:attribute name="value">4.5.2.beta</xsl:attribute>
|
||||
<xsl:attribute name="value">4.7.0.RC</xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Default templates to match anything else -->
|
||||
|
||||
Reference in New Issue
Block a user