Jump to content


[Mantis BugTracker] Set Default Project for Users


No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 03 August 2007 - 10:39 PM

If you have multiple Mantis BugTracker 1.0.8 projects you may want to set a default project for all users. Of course the user will be able to change this setting from the "My Account > Preferences" CP.

To set the default project for new registrations to a specified Mantis project:
ALTER TABLE `mantis_user_pref_table` CHANGE `default_project` `default_project` INT( 10 ) UNSIGNED NOT NULL DEFAULT '1'
Note: You must change the "1" in the query to the actual project ID.


To reset default project for all previously registered Mantis users:
UPDATE mantis_user_pref_table SET default_project =1



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users