View Issue Details

IDProjectCategoryView StatusLast Update
0016420mantisbtpreferencespublic2014-02-07 18:24
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.15 
Target Version1.2.16Fixed in Version1.2.16 
Summary0016420: Editing user preferences when no project exists triggers application error 20
Description

It is not possible to update a user's preferences (via My Account / Preferences) when no projects exists (e.g. right after installation).

Mantis triggers APPLICATION ERROR 200: A required parameter to this page (default_project) was not found.

Steps To Reproduce

Steps to reproduce

  • install Mantis
  • login with default administrator account
  • Go to My Account / Preferences
  • Notice the default project list is empty since we haven't created a project yet
  • Click Update Prefs
Additional Information

Issue initially submitted as Pull Request on Github [1]

[1] https://github.com/mantisbt/mantisbt/pull/89

TagsNo tags attached.

Relationships

related to 0016416 closedvboctor Improve first login experience by auto-redirecting to create project page 

Activities

grangeway

grangeway

2013-09-28 19:00

reporter   ~0038129

It should be possible to select "ALL PROJECTS" even if there is only one project.

This allows the user to default ALL PROJECTS when future projects are added.

vboctor

vboctor

2013-09-28 19:08

manager   ~0038130

Is there a reason for not always including ALL_PROJECTS? This is a valid default value which provides the user with the view of all issues on login, rather than selecting a specific project.

dregad

dregad

2013-09-28 19:27

developer   ~0038131

Last edited: 2013-09-28 19:28

@vboctor, yes there is, see 0009826

@grangeway, if you don't agree with a fix, instead of reverting people's changes maybe you should try discussing with them first, and propose a better solution.

Related Changesets

MantisBT: master-1.2.x 26831ea0

2013-09-28 08:32

dregad


Details Diff
Editing user prefs when no project exists triggers error

It was not possible to update a user's preferences when no projects
exists (e.g. right after installation), Mantis triggered application
error 20.

We now omit 'All projects' from the default project selection list only
when the project count is 1.

Fixes 0016420
Affected Issues
0016420
mod - account_prefs_inc.php Diff File

MantisBT: master e60809f7

2013-09-28 08:32

dregad


Details Diff
Editing user prefs when no project exists triggers error

It was not possible to update a user's preferences when no projects
exists (e.g. right after installation), Mantis triggered application
error 20.

We now omit 'All projects' from the default project selection list only
when the project count is 1.

Fixes 0016420
Affected Issues
0016420
mod - account_prefs_inc.php Diff File