Update widgetController.js #62
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initially logged on CodePlex but this is a better home
I have attempted an upgrade of a multiblog instance backed by MS SQL of BlogEngine 3.2 to 3.3.
I could access all my blogs, post etc. As expected there were no widgets show (as they have been deleted). So I....
If I try to edit a widget to alter the settings the popup dialog is the right size but empty.
If I checked the server logs I see the error
The parameterized query '(@blogid nvarchar(36),@etype int,@eid nvarchar(4000))SELECT Sett' expects the parameter '@eid', which was not supplied.
I have had a look at the source for the widget editors controller and it seems the widget id is not being set on the Url as a query string entry. If I alter the line to
var customSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/" + name + "/edit.cshtml?id="+ id;
It works, but I am not sure of any knock on effects, not sure if this is the real cause of the issue.