Merge pull request #742 from tomfulton/fix/u4-6843
Fix backoffice breaking when Actions use code in JsSource - U4-6843
This commit is contained in:
@@ -715,7 +715,7 @@ namespace Umbraco.Web.Editors
|
||||
if (isValid)
|
||||
{
|
||||
//it is a valid URL add to Url list
|
||||
urlList.Add(jsFile);
|
||||
urlList.Add(jsFile.StartsWith("~/") ? IOHelper.ResolveUrl(jsFile) : jsFile);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace umbraco.BusinessLogic.Actions
|
||||
{
|
||||
return ActionsResolver.Current.Actions
|
||||
.Where(x => !string.IsNullOrWhiteSpace(x.JsSource))
|
||||
.Select(x => IOHelper.ResolveUrl(x.JsSource)).ToList();
|
||||
.Select(x => x.JsSource).ToList();
|
||||
//return ActionJsReference;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user