View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05548Bug reportsOtherpublic2011-11-11 12:08
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00a1 
Summary05548: PHP error on /admin/user/editusers
Description

I test only with a second super admin, but i think we can have the same problem.

In /admin/user/editusers there are PHP error for parent user name.

1st:
Severity: Notice
Message: Undefined index: users_name
Filename: user/editusers.php
Line Number: 110

Second in the table for the user itself , created-by column
Severity: Notice
Message: Undefined variable: srow
Filename: user/editusers.php
Line Number: 43

Steps To Reproduce

Create a new super admin user, connect to limesurvey admin with this user.

Trye to look at the user list ( /admin/user/editusers )

Additional Information

There are 2 problem,
1st:
$uquery = "SELECT users_name FROM ".$this->db->dbprefix('users')." WHERE uid=".$usr['parent_id']; in view: if $usr['parent_id'] are 0 then it make an error.

Second : the $srow are not set actually, need some query in view.

Maybe the best solution is to put the $usr['parent_name'] directly in user controller ( controllers/admin/user.php )

Don't know the best solution :)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)11310
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionMysql 5.2
Server OS (if known)debian/linux
Webserver software & version (if known)apache
PHP Version5.3
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2011-11-09 14:00

developer   ~16640

Oups 2.00a , not 2.00b

DenisChenu

DenisChenu

2011-11-11 12:08

developer   ~16651

withdraw of 2.0a CI system

Issue History

Date Modified Username Field Change
2011-11-01 19:49 DenisChenu New Issue
2011-11-09 14:00 DenisChenu Note Added: 16640
2011-11-09 14:00 DenisChenu Product Version 2.00a2 => 2.00a1
2011-11-11 12:08 DenisChenu Note Added: 16651
2011-11-11 12:08 DenisChenu Status new => closed
2011-11-11 12:08 DenisChenu Assigned To => DenisChenu
2011-11-11 12:08 DenisChenu Resolution open => fixed