Fixes: 27796

[TFS Changeset #70550]
This commit is contained in:
Shandem
2010-06-21 15:57:43 +00:00
parent 2db0daf773
commit 5d8b5a13b8
4 changed files with 20 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ NOTES:
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
* A new version will invalidate both client and server cache and create new persisted files
-->
<clientDependency version="34">
<clientDependency version="35">
<fileRegistration defaultProvider="LoaderControlProvider" fileDependencyExtensions=".js,.css">
<providers>

View File

@@ -95,11 +95,21 @@ namespace umbraco.cms.businesslogic.member
/// </summary>
/// <param name="Alias">The alias of the MemberType</param>
/// <returns>The MemberType with the given Alias</returns>
public static new MemberType GetByAlias(string Alias)
{
return new MemberType(SqlHelper.ExecuteScalar<int>("SELECT nodeid from cmsContentType where alias = @alias",
SqlHelper.CreateParameter("@alias", Alias)));
}
public new static MemberType GetByAlias(string Alias)
{
try
{
return
new MemberType(
SqlHelper.ExecuteScalar<int>(@"SELECT nodeid from cmsContentType INNER JOIN umbracoNode on cmsContentType.nodeId = umbracoNode.id WHERE nodeObjectType=@nodeObjectType AND alias=@alias",
SqlHelper.CreateParameter("@nodeObjectType", MemberType._objectType),
SqlHelper.CreateParameter("@alias", Alias)));
}
catch
{
return null;
}
}
/// <summary>

View File

@@ -120,8 +120,9 @@ namespace umbraco.cms.businesslogic.web
{
return
new DocumentType(
SqlHelper.ExecuteScalar<int>("SELECT nodeid from cmsContentType where alias = @alias",
SqlHelper.CreateParameter("@alias", Alias)));
SqlHelper.ExecuteScalar<int>(@"SELECT nodeid from cmsContentType INNER JOIN umbracoNode on cmsContentType.nodeId = umbracoNode.id WHERE nodeObjectType=@nodeObjectType AND alias=@alias",
SqlHelper.CreateParameter("@nodeObjectType", DocumentType._objectType),
SqlHelper.CreateParameter("@alias", Alias)));
}
catch
{

View File

@@ -10,7 +10,7 @@ NOTES:
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
* A new version will invalidate both client and server cache and create new persisted files
-->
<clientDependency version="34">
<clientDependency version="35">
<fileRegistration defaultProvider="LoaderControlProvider" fileDependencyExtensions=".js,.css">
<providers>