#172 Default user for reports

open
Chris Woofter
5
2006-09-20
2006-09-20
David Gaya
No

On many reports we can select which user we want the
report for. This user selection is now ordered and the
first user in the list is selected by default. This way
whichever user wants a report always gets the first
alfabeticaly listed user.

I think that the default selection should be the user
who is actually conected. This way everybody would get
himself as default selection.

For example in file reports/index.php where:

$con = get_xrms_dbconnection();

$user_menu = get_user_menu($con);

$con->close();

could be changed to:

$con = get_xrms_dbconnection();

$user_menu = get_user_menu($con,$session_user_id);

$con->close();

Discussion