Skip to content

Commit 96d3e7f

Browse files
committed
Fix for DB upgrade config file
1 parent c172dfa commit 96d3e7f

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

BlogEngine/BlogEngine.NET/admin/app/custom/widgets/widgetController.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
}
4242

4343
$scope.loadEditForm = function (id, name, title, zone) {
44-
var sharedSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/common.cshtml";
45-
var customSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/" + name + "/edit.cshtml";
46-
44+
var sharedSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/common.cshtml?id=" + id + "&zone=" + zone;
45+
var customSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/" + name + "/edit.cshtml?id=" + id + "&zone=" + zone;
4746

4847
$scope.editId = id;
4948
$scope.editTitle = title;
@@ -55,13 +54,13 @@
5554

5655
$.ajax({
5756
type: 'HEAD',
58-
url: customSrc + "?id=" + id,
57+
url: customSrc,
5958
async: false,
6059
success: function () {
61-
$scope.editSrc = customSrc + "?id=" + id + "&zone=" + zone;
60+
$scope.editSrc = customSrc;
6261
},
6362
error: function () {
64-
$scope.editSrc = sharedSrc + "?id=" + id + "&zone=" + zone;
63+
$scope.editSrc = sharedSrc;
6564
}
6665
});
6766
// show modal and add the name of widget for class. and we will use in the CSS for the height of modal.

BlogEngine/BlogEngine.NET/setup/upgrade/Updater.asmx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public class Updater : WebService {
376376
}
377377
else if (conPrv == "System.Data.SqlClient")
378378
{
379-
sourceFile = _root + "\\setup\\upgrade\\backup\\be\\setup\\SQLServer\\SQLServerWeb.Config";
379+
sourceFile = _root + "\\setup\\upgrade\\backup\\be\\setup\\SQLServer\\DbWeb.Config";
380380
defCon = @"Server=.\SQLEXPRESS;Database=BlogEngine;Trusted_Connection=True;";
381381
}
382382

0 commit comments

Comments
 (0)