MantisBT - ATutor
View Issue Details
0003245ATutorAdminpublic2007-12-15 21:042008-08-21 08:57
IndieRect 
harris 
normalminoralways
closedfixed 
1.6 
1.6 
SVN
0003245: Can't change admin default language.
Admin's default language preference is saved only if more than 5 languages are installed.
See: http://www.atutor.ca/view/3/11363/1.html [^] (search "Admin's inability to switch language").
No tags attached.
Issue History
2007-12-15 21:04IndieRectNew Issue
2007-12-15 21:04IndieRectAffects version => SVN
2008-01-08 10:34gregStatusnew => assigned
2008-01-08 10:34gregAssigned To => harris
2008-01-10 02:21IndieRectNote Added: 0002730
2008-01-10 02:26IndieRectNote Edited: 0002730
2008-01-10 05:26harrisStatusassigned => resolved
2008-01-10 05:26harrisFixed in Version => 1.6
2008-01-10 05:26harrisResolutionopen => fixed
2008-01-10 05:26harrisNote Added: 0002731
2008-01-16 06:30harrisStatusresolved => feedback
2008-01-16 06:30harrisResolutionfixed => reopened
2008-01-16 06:30harrisNote Added: 0002745
2008-01-16 06:31harrisStatusfeedback => assigned
2008-01-16 06:31harrisStatusassigned => resolved
2008-01-16 06:31harrisResolutionreopened => fixed
2008-01-16 06:31harrisNote Added: 0002746
2008-08-21 08:57gregStatusresolved => closed

Notes
(0002730)
IndieRect   
2008-01-10 02:21   
(edited on: 2008-01-10 02:26)
Re: http://www.atutor.ca/view/3/11363/1.html#12517 [^]

Reproduced in a fresh installation of 1.6 beta 3.
Steps:
1. Log in as an admin.
2. Make sure that the language selector is a series of links, not a dropdown box (i.e. you have fewer that six languages installed).
3. Click on some language -- the interface will change.
4. With MySQL or phpMyAdmin check that admin's entry in `AT_admins` -- `language` will still read 'en', while should correspond to the one you selected.

That's it.

Additional steps to make sure:
5. Log out from ATutor and back in as an admin -- the language is English again.
6. Install some more languages so that there is now a language selection dropdown box.
7. Click on a language.
8. See that the language has really been saved to the DB.
9. Log out and back in -- the language is changed.

Does it follow the same path in your installation?

(0002731)
harris   
2008-01-10 05:26   
svn: 7214

The admin uses login_name instead of member_id
(0002745)
harris   
2008-01-16 06:30   
reversed admin and member under if-conditional-stmt in vitals.inc.php line 201-203
(0002746)
harris   
2008-01-16 06:31   
7224