Module Compatabiliy

Topics: Troubleshooting, Writing modules
Oct 16, 2015 at 6:39 PM
I've inherited a custom module called "Tutors", it was operating as expected on Orchard version 1.3. But when I enable the module in Orchard 1.9.2 the control interface doesn't show up in the dashboard. What am I doing wrong?

This is the contents of AdminMenu.cs:
//using Orchard.Pages.Services;
using Orchard.UI.Navigation;
using Orchard.Localization;

namespace Tutors {
    
    public class TutorsMenu : INavigationProvider {
        
        public Localizer T { get; set; }
        
        public string MenuName { get { return "admin"; } }
        
        public void GetNavigation(NavigationBuilder builder) {
            builder
                .Add(T("Tutoring"), "1", menu => {
                    menu.Add(T("Approve"), "1.0", x => x.Action("Approve", "Time", new { area = "Tutors" }).LocalNav());
                    menu.Add(T("Time Entry"), "2.0", x => x.Action("Index", "Time", new { area = "Tutors" }).LocalNav());
                    menu.Add(T("Contacts"), "3.0", x => x.Action("Index", "Contact", new { area = "Tutors" }).LocalNav());
                    if (Ext.Request.RawUrl.StartsWith("/Tutors/Contact/Edit")) 
                        menu.Add(T("Edit Contact"), "4.0", x => x.Action("Edit", "Contact", new { area = "Tutors" }).LocalNav());
                    if (Ext.Request.RawUrl.StartsWith("/Tutors/Contact/Delete")) 
                        menu.Add(T("Delete Contact"), "5.0", x => x.Action("Delete", "Contact", new { area = "Tutors" }).LocalNav());
                    menu.Add(T("Report"), "6.0", x => x.Action("Report", "Time", new { area = "Tutors" }).LocalNav());
                    menu.Add(T("Contact Types"), "7.0", x => x.Action("Index", "ContactType", new { area = "Tutors" }).LocalNav());
                    if (Ext.Request.RawUrl.StartsWith("/Tutors/ContactType/Edit")) 
                        menu.Add(T("Edit Contact Type"), "8.0", x => x.Action("Edit", "ContactType", new { area = "Tutors" }).LocalNav());
                    if (Ext.Request.RawUrl.StartsWith("/Tutors/ContactType/Delete")) 
                        menu.Add(T("Delete Contact Type"), "9.0", x => x.Action("Delete", "ContactType", new { area = "Tutors" }).LocalNav());
                });
        }
        
    }
    
}
I'm not entirely sure this is the root of the problem, but it seems relevant. If there's any other information needed please let me know.

Thank you.