diff --git a/lib/SQLCE4/System.Data.SqlServerCe.Entity.dll b/lib/SQLCE4/System.Data.SqlServerCe.Entity.dll index 3d7692a0b9..2579399e23 100644 Binary files a/lib/SQLCE4/System.Data.SqlServerCe.Entity.dll and b/lib/SQLCE4/System.Data.SqlServerCe.Entity.dll differ diff --git a/lib/SQLCE4/System.Data.SqlServerCe.dll b/lib/SQLCE4/System.Data.SqlServerCe.dll index acf228b726..8d16c2a6db 100644 Binary files a/lib/SQLCE4/System.Data.SqlServerCe.dll and b/lib/SQLCE4/System.Data.SqlServerCe.dll differ diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs index 8b928454a4..fc7debaecd 100644 --- a/src/Umbraco.Web/UmbracoHelper.cs +++ b/src/Umbraco.Web/UmbracoHelper.cs @@ -249,13 +249,14 @@ namespace Umbraco.Web attributesForItem.Add(i.Key, i.Value); } - var item = new Item() - { - NodeId = currentPage.Id.ToString(), - Field = fieldAlias, - TextIfEmpty = altText, - LegacyAttributes = attributesForItem - }; + var item = new Item() + { + //NodeId = currentPage.Id.ToString(); + Field = fieldAlias, + TextIfEmpty = altText, + LegacyAttributes = attributesForItem + }; + var containerPage = new FormlessPage(); containerPage.Controls.Add(item); diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditMediaType.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditMediaType.aspx.cs index 08bb6aabba..da67180304 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditMediaType.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditMediaType.aspx.cs @@ -48,18 +48,19 @@ namespace umbraco.cms.presentation.settings { int mtid = 0; - speechBubble(speechBubbleIcon.save, "Mediatype saved", "Mediatype was successfully saved"); + ClientTools.ShowSpeechBubble(speechBubbleIcon.save, "Mediatype saved", "Mediatype was successfully saved"); + if (int.TryParse(Request.QueryString["id"], out mtid)) new cms.businesslogic.media.MediaType(mtid).Save(); } else if (sce.Message.Contains("Tab")) { - speechBubble(speechBubbleIcon.info, "Tab added", sce.Message); + ClientTools.ShowSpeechBubble(sce.IconType, sce.Message, ""); } else { - base.speechBubble(sce.IconType, sce.Message, ""); + ClientTools.ShowSpeechBubble(sce.IconType, sce.Message, ""); } return true; diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditNodeTypeNew.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditNodeTypeNew.aspx.cs index 4d9303cd1e..0c3be42e00 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditNodeTypeNew.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditNodeTypeNew.aspx.cs @@ -103,7 +103,7 @@ namespace umbraco.settings if (int.TryParse(Request.QueryString["id"], out dtid)) new cms.businesslogic.web.DocumentType(dtid).Save(); - base.speechBubble(e.IconType, ui.Text("contentTypeSavedHeader"), ""); + ClientTools.ShowSpeechBubble(e.IconType, ui.Text("contentTypeSavedHeader"), ""); ArrayList tmp = new ArrayList(); @@ -132,7 +132,7 @@ namespace umbraco.settings } else { - base.speechBubble(e.IconType, e.Message, ""); + ClientTools.ShowSpeechBubble(e.IconType, e.Message, ""); } handled = true; } diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs index 7a0b7a50f9..1d7371c5ac 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs @@ -107,7 +107,7 @@ namespace umbraco.presentation.templateControls // content class to lookup field items try { - tempElementContent = GetContentFromDatabase(item.Attributes, tempNodeId.Value, currentField); + tempElementContent = GetContentFromDatabase(item.LegacyAttributes, tempNodeId.Value, currentField); } catch { @@ -248,7 +248,7 @@ namespace umbraco.presentation.templateControls /// The node id. /// The field that should be fetched. /// The contents of the from the content object - protected virtual string GetContentFromDatabase(AttributeCollection itemAttributes, int nodeIdInt, string currentField) + protected virtual string GetContentFromDatabase(AttributeCollectionAdapter itemAttributes, int nodeIdInt, string currentField) { Content c = new Content(nodeIdInt); @@ -256,7 +256,7 @@ namespace umbraco.presentation.templateControls if (property == null) throw new ArgumentException(String.Format("Could not find property {0} of node {1}.", currentField, nodeIdInt)); - item umbItem = new item(property.Value.ToString(), new AttributeCollectionAdapter(itemAttributes)); + item umbItem = new item(property.Value.ToString(), itemAttributes); string tempElementContent = umbItem.FieldContent; // If the current content object is a document object, we'll only output it if it's published diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/MediaUploader.ashx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/MediaUploader.ashx.cs index e98d306552..51ac1743b2 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/MediaUploader.ashx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/MediaUploader.ashx.cs @@ -162,7 +162,10 @@ namespace umbraco.presentation.umbraco.webservices { // Ensure we get the filename without the path in IE in intranet mode // http://stackoverflow.com/questions/382464/httppostedfile-filename-different-from-ie - var fileName = new FileInfo(uploadFile.FileName).Name; + var fileName = uploadFile.FileName; + if(fileName.LastIndexOf(@"\") > 0) + fileName = fileName.Substring(fileName.LastIndexOf(@"\") + 1); + fileName = Umbraco.Core.IO.IOHelper.SafeFileName(fileName); var postedMediaFile = new PostedMediaFile diff --git a/src/umbraco.cms/businesslogic/ContentType.cs b/src/umbraco.cms/businesslogic/ContentType.cs index befaa03556..2154ec0118 100644 --- a/src/umbraco.cms/businesslogic/ContentType.cs +++ b/src/umbraco.cms/businesslogic/ContentType.cs @@ -794,6 +794,7 @@ namespace umbraco.cms.businesslogic SqlHelper.ExecuteNonQuery("delete from cmsTab where id =" + id); + InitializeVirtualTabs(); // Remove from cache FlushFromCache(Id); }