Monday 20 August 2012

Two important changes

There are a couple of other important changes, Here they are:

 Umbraco > Members > EditMembers > Save 
Umbraco > Media > editMedia > Save
Method `umbraco.cms.businesslogic.web.Document:FireBeforeSave (umbraco.cms.businesslogic.SaveEventArgs)' is inaccessible from method `umbraco.controls.ContentControl:saveClick (object,System.Web.UI.ImageClickEventArgs)
The error originates in line 236 of .../umbraco/presentation/umbraco/controls/ContentControl.cs


this indeed breaks protection. In .../umbraco/cms/businesslogic/web/Document.cs line 1884, we have,

protected internal new virtual void FireBeforeSave(SaveEventArgs e)

change this to,

public new virtual void FireBeforeSave(SaveEventArgs e)

We may need to revisit this.

The other issue involves the '¤' character, which is used as a string splitter.Mono is quite fussy about how this string is defined. Here's what works in mono.

Settings > Scripts > Create Folder
Index out of bounds error
This is due to issues with "¤" string splitting.
In file .../umbraco/presentation/umbraco/create/script.ascx.cs, modify line 40 as:

	char c = '\u00A4';
string returnUrl = presentation.create.dialogHandler_temp.Create(
relativepath + c.ToString() + rename.Text + c.ToString() + scriptType.SelectedValue);

and in file .../umbraco/presentation/umbraco/create/ScriptTasks.cs, modify line 44 as:

	char c = '\u00A4'; 
string[] scriptFileAr = _alias.Split(c);


No comments:

Post a Comment

Note: only a member of this blog may post a comment.