• Status Confirmed
  • Percent Complete
  • Task Type Bug Report
  • Category User Interface
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Low
  • Reported Version 1.0 devel (github master)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Flyspray
Opened by thess - 08.06.2016
Last edited by peterdd - 23.07.2016

FS#2136 - After updating user properties as admin - return to wrong screen

Logged in as admin, modify a users group membership. After clicking update, you are returned to your logged-in profile (admin in this case). It should re-display the user’s profile you are editing.

The ‘back’ button will return to updated page.

Project Manager

Ah, thats because actions ‘admin.edituser’ and ‘myprofile.edituser’ share the same switch/case code in includes/ :

case 'admin.edituser':
case 'myprofile.edituser':
# action handling ..

and forgot to redirect to the best fitting page after it.

So we either split that code sharing - or replace the redirection at the end of the action handling with soemthing like

        if ($action === 'myprofile.edituser'){
        } elseif($action === 'admin.edituser' && Post::val('area') === 'users'){
                Flyspray::Redirect(CreateURL('admin', Post::val('user_id')));
        } else {
                Flyspray::Redirect(CreateURL('user', Post::val('user_id')));

(untested, not finished, just as an idea)

thess commented on 10.06.2016 17:00

Gives error: #6 invalid admin area. I think the 2nd redirect (elseif) should read:

Flyspray::Redirect(CreateURL('edituser', Post::val('user_id')));
Project Manager

Well, this is not nicest solution, but thats how the former devs invented that form...:

We must also pass the project_id around within the form (because it will be used to fill the $proj object in header.php we use later.

So to stay on the current project, the redirect url is like


after switching project on a user page:
/user/123 ('all projects'-mode)

Then select project 4:

Change group of user in project 4
and Redirect to /user/123?project=4

And we must also check that only legal group_id's of the same project can be set!


Available keyboard shortcuts


Task Details

Task Editing