mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing issue where Folder Update is Null because of emtpy string
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
|
||||
<div class="breadCrumbs">
|
||||
<p>@Html.ActionLink(T("Media Library").ToString(), "Index", "Admin", new { area = "Orchard.MediaLibrary" }, new {}) >
|
||||
@foreach (var folder in Model.FolderPath.Split('/')) {
|
||||
if (!String.IsNullOrEmpty(folder)) {
|
||||
@Html.ActionLink(folder, "Edit", new {folderPath = folder})
|
||||
<text>></text>
|
||||
}
|
||||
@if (Model.FolderPath != null) {
|
||||
foreach (var folder in Model.FolderPath.Split('/')) {
|
||||
if (!String.IsNullOrEmpty(folder)) {
|
||||
@Html.ActionLink(folder, "Edit", new {folderPath = folder})
|
||||
<text>></text>
|
||||
}
|
||||
}
|
||||
}
|
||||
@T("Add a Folder") </p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user