bear Posted October 18, 2020 Share Posted October 18, 2020 Modifying a custom widget I created long ago to use different queries. Copied the existing one, changed some things and have it set to be available for my user role in the admin. Thing is, though it's there in the permissions, it's not available in the drop down to enable seeing it on the admin home page. No errors being produced, it just isn't showing up in the list. Where does one start to determine what's wrong with that? Kind of baffled with this. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 19, 2020 Author Share Posted October 19, 2020 Just to be sure it works, took the PHP and queries and stuck them in an external file. Works perfectly. Just can't get the widget to appear in the list of choices. Still on v7.6.1 of WHMCS, if that matters. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 19, 2020 Author Share Posted October 19, 2020 As usual, I discover the cause while waiting, and it's an interesting one. File name. If the widget file name has dashes (in my case it had both underscores and dashes in the non working version), it won't show in the admin "enable" list, but will appear in the permissions list for the role. Once I tried it without dashes, there it was. If that's documented somewhere, I certainly could't find it, so maybe this will help someone in the future. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.