mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix typo on error message on widgets admin.
--HG-- branch : dev
This commit is contained in:
@@ -44,9 +44,10 @@ namespace Orchard.Widgets.Controllers {
|
||||
layers.First() :
|
||||
layers.FirstOrDefault(layer => layer.Id == id);
|
||||
|
||||
if (currentLayer == null) {
|
||||
if (currentLayer == null &&
|
||||
id != null) {
|
||||
// Incorrect layer id passed
|
||||
Services.Notifier.Error(T("Layer not found: {1}", id));
|
||||
Services.Notifier.Error(T("Layer not found: {0}", id));
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
@@ -254,7 +255,7 @@ namespace Orchard.Widgets.Controllers {
|
||||
try {
|
||||
widgetPart = _widgetsService.GetWidget(id);
|
||||
if (widgetPart == null) {
|
||||
Services.Notifier.Error(T("Widget not found: {1}", id));
|
||||
Services.Notifier.Error(T("Widget not found: {0}", id));
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user