MantisBT: master-1.2.x b1a1bbae

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-09-10 01:56 master-1.2.x e536cbcd
Affected Issues  0009826: Single project user should default to the project, not All Projects
 0014268: "Report Issue" is missing if the user has access to only private projects, but has not selected a project from the dropdown.
 0016337: Creating the first project on a fresh install causes error 2800
Changeset

User with access to single project defaults to it, not all projects

Since 1.2, if a user has access to only one project, the project
selection box at top right isn't shown. This was causing issues as new
users accounts have 'All projects' as their default:

  • user can't report issues (no link for all projects)
  • categories displayed are prefixed with [project]

Until this commit, users had to define their (single) project as default
using preferences to work around the problem; this is no longer needed.

Function html_login_info() now sets the current project as appropriate
if user has only access to a single one, and also defines that as the
default.

The account preferences page has also been modified to only include 'All
projects' in the selection list when user has more than one project
available.

Fixes 0009826, 0014268

mod - account_prefs_inc.php Diff File
mod - core/html_api.php Diff File