Remove more non-audit logtypes for U4-7
This commit is contained in:
@@ -300,31 +300,10 @@ namespace umbraco.cms.businesslogic
|
||||
/// <returns>The property with the given propertytype</returns>
|
||||
public Property getProperty(PropertyType pt)
|
||||
{
|
||||
|
||||
//object o = SqlHelper.ExecuteScalar<object>(
|
||||
// "select id from cmsPropertyData where versionId=@version and propertyTypeId=@propertyTypeId",
|
||||
// SqlHelper.CreateParameter("@version", this.Version),
|
||||
// SqlHelper.CreateParameter("@propertyTypeId", pt.Id));
|
||||
//if (o == null)
|
||||
// return null;
|
||||
//int propertyId;
|
||||
//if (!int.TryParse(o.ToString(), out propertyId))
|
||||
// return null;
|
||||
//try
|
||||
//{
|
||||
// return new Property(propertyId, pt);
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// Log.Add(LogTypes.Error, this.Id, "An error occurred retreiving property. EXCEPTION: " + ex.Message);
|
||||
// return null;
|
||||
//}
|
||||
|
||||
EnsureProperties();
|
||||
|
||||
var prop = m_LoadedProperties
|
||||
.Where(x => x.PropertyType.Id == pt.Id)
|
||||
.SingleOrDefault();
|
||||
var prop = m_LoadedProperties.SingleOrDefault(x => x.PropertyType.Id == pt.Id);
|
||||
|
||||
return prop;
|
||||
|
||||
}
|
||||
|
||||
@@ -417,7 +417,7 @@ namespace umbraco.cms.businesslogic.web
|
||||
d.OnNew(e);
|
||||
|
||||
// Log
|
||||
Log.Add(LogTypes.New, u, d.Id, "");
|
||||
LogHelper.Info<Document>(string.Format("New document {0}", d.Id));
|
||||
|
||||
// Run Handler
|
||||
umbraco.BusinessLogic.Actions.Action.RunActionHandlers(d, ActionNew.Instance);
|
||||
|
||||
Reference in New Issue
Block a user