Hi,
I created a new subpanel under Accounts by editing modules/Accounts/layout_defs.php. Basically, I copied the history cubpanel - renaming it archived emails. Then I removed emails from the original history subpanel - and placed emails only in the new subpanel.
Did some associated changes to labels and it all works fine.
However, if a user hides the emails tab, then an error is generated when it tried to draw the new subpanel:
"Error running count query for Account List: Query Failed:::MySQL error 1065: Query was empty"
I'm guessing that this is falling over because there's no data coming back. To prove it, if I add meetings into the new subpanel, it will display OK - even with email still restricted to that user.
I'm guessing again that 'fixing' the way the queries are generated will be too involved and is more of a mod to accomplish what I'm doing anyway, but what I was wondering is if there is a way to hide this new subpanel if emails are disabled. I mean, if you disable cases, or leads etc, then the cases and leads subpanels are hidden automatically. Is there a way to links this new subpanel to the emails module in a way so that when emails are disabled for a user, then the subpanel is excluded too?
Thanks


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks