Skip to content

Commit

Permalink
#58 trim .html from grid view names.
Browse files Browse the repository at this point in the history
removes the .html from the view name so we get the actual file name.
  • Loading branch information
KevinJump committed Oct 5, 2019
1 parent 50e4081 commit 7969f8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uSync8.ContentEdition/Mapping/Mappers/GridMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ private IEnumerable<TObject> GetGridDependencies<TObject>(string gridContent, Fu
var viewAlias = editor.Value<string>("view");
if (viewAlias == null) return (alias, null);

viewAlias = viewAlias.ToLower().TrimEnd(".html");

if (viewAlias.IndexOf('.') != -1)
viewAlias = viewAlias.Substring(viewAlias.LastIndexOf('.'));

Expand Down

0 comments on commit 7969f8f

Please sign in to comment.