The NewsDesk module I am building is running without issues since August under DNN 5.6.3. I used the DNN Announcements module as basis, but I built many additions and made a lot of modifications to change its functionality. It is not finished, there are still many enhancements on my to-do list.
I have not been able to upgrade the production site to DNN 6 because of a lack of time to research the issues, mainly related to the css configuration for the navigation control and authentication and profile controls.
One issue however relates to my code: I copied the IActionable implementation from the announcements module without modification. Under DNN 6, this causes an error. I checked the source of the Announcements module and noticed the same error.
The Get for the property ModuleActions reads like this:
Dim Actions As New Actions.ModuleActionCollection
Actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.AddContent, LocalResourceFile), _
ModuleActionType.AddContent, "", "add.gif", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
Actions.Add(GetNextActionID, "~", "")
Return Actions
The second Add causes an error: Overload resolution failed because no accessible 'Add' accepts this number of arguments. I have no idea what this call to the Add method was supposed to do, but it works for me under DNN 5
Deleting this line does not seem to affect the Actions control.
Q1: Can I delete this from my module without further consequences?
Q2: Will there be an update of the Announcements module to fix this?