View Issue Details

IDProjectCategoryView StatusLast Update
0002997mantisbtbugtrackerpublic2003-12-13 04:45
Reporterlele Assigned Tojfitzell  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0002997: Trouble assigning a user to a project from the Manage Account
Description

I get an error (see additional notes) when I try to assign a particular user to a project from its management page.
It works when I go in the "Manage Projects" page and add that user to the project.

Steps To Reproduce

Enter in the "Manage Accounts", choose a User, try assign it to an unassigned project.

Additional Information

APPLICATION ERROR 0000700: ERROR: Project not found.
(project_api.php: line 62)

Previous non-fatal errors occurred. Page contents follow.

SYSTEM WARNING: Illegal offset type
(access_api.php: line 349)

TagsNo tags attached.

Activities

jabr

jabr

2003-02-26 01:43

reporter   ~0003828

well, may be a coincidence or a clue, but if you submit that form without having selected any project - you'll get that error.

should there be error checking and a friendly response in this case? IE: Your attempting to add a user to a project but have left a field blank.

jabr

jabr

2003-02-26 01:53

reporter   ~0003829

I should add that I wasn't able to reproduce this problem (aside from not selecting a project) in the current CVS (feb 25th)

lele

lele

2003-02-26 02:36

reporter   ~0003830

Uhm, I just checked (out) and it's still there for me. And I'm even sure I'm selecting an unassigned project from the list.
From what I'm seeing in mysql.log, Mantis is generating the right query

SELECT *
FROM mantis_project_table
WHERE id='15'

where 15 is the existing id of the project I'm trying to assign. Strangely around line 62 that returns a zero-length result...

jfitzell

jfitzell

2003-02-26 09:52

reporter   ~0003839

Fixed in CVS

Related Changesets

MantisBT: master 79588ba6

2003-02-26 03:48

Julian Fitzell


Details Diff
Fix issue 0002997

* manage_user_proj_add.php: properly check project permissions inside the loop.
We were accidentaly passing in the whole project_id array

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2037 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002997
mod - manage_user_proj_add.php Diff File

MantisBT: master d96f422b

2003-02-26 03:53

Julian Fitzell


Details Diff
Fix issue 0002997

* manage_user_proj_add.php: properly check project permissions inside the loop.
We were accidentaly passing in the whole project_id array

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2038 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002997
mod - doc/ChangeLog Diff File