View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
18297Bug reportsUser / Groups / Rolespublic2022-08-08 09:16
Reporterujtwrujtwr Assigned ToDenisChenu  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version5.3.x 
Fixed in Version5.3.x 
Summary18297: Survey permissions menu does not work
Description

From ver. 5.3.27 or ver. 5.3.26, "Survey permissions" menu does not work.
Now, I try on ver. 5.3.29.

When clicking "Survey permissions" menu, limesurvey shows error bellow:

--
500: Internal Server Error
in_array(): Argument #2 ($haystack) must be of type array, null given

Steps To Reproduce

Click "Survey permissions" menu.

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)5.3.29+220801
I will donate to the project if issue is resolvedNo
Browserfirefox, chrome
Database type & versionMySQL 8.0.27
Server OS (if known)Linux
Webserver software & version (if known)Apache/2.4.54
PHP Version8.0.20 (fpm)

Relationships

child of 18224 closedDenisChenu Can't set Survey Permissions for User Group when usercontrolSameGroupPolicy is false 

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

ollehar

ollehar

2022-08-01 11:58

administrator   ~71263

Last edited: 2022-08-01 11:58

Which menu is that exactly? Feel free to give us a screenshot of before and after the error happens.

ollehar

ollehar

2022-08-01 12:10

administrator   ~71264

Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here.

ujtwrujtwr

ujtwrujtwr

2022-08-01 15:43

reporter   ~71265

Thank you for quick response.

"Survey permissions" menu is fig1.png.
When I click left button, browser window is gray out and wait loading. Next, open the menu link in new tab, fig2_debug_mes.png is showed.

The menu on some surveys work fine. These surveys are assigned single permitted user, surveys that problem occur look they have multiple permitted users.

fig1.png (55,774 bytes)   
fig1.png (55,774 bytes)   
fig2_debug_msg.png (196,364 bytes)
ujtwrujtwr

ujtwrujtwr

2022-08-01 15:48

reporter   ~71266

P.S.

In the "Survey permissions" page, We should have some user groups, but there are not.

fig3.png (8,449 bytes)   
fig3.png (8,449 bytes)   
ollehar

ollehar

2022-08-01 15:52

administrator   ~71268

Are you logged in as superadmin when this error appears? Or "normal" admin?

ujtwrujtwr

ujtwrujtwr

2022-08-01 15:54

reporter   ~71269

Logged in as superadmin.

ujtwrujtwr

ujtwrujtwr

2022-08-01 15:56

reporter   ~71270

Most user are LDAP user.

ollehar

ollehar

2022-08-01 16:01

administrator   ~71271

How many user groups do you have? Do all user groups have members?

ujtwrujtwr

ujtwrujtwr

2022-08-01 16:06

reporter   ~71272

We have 6 groups, and about 40 users. Some users are member of group, some users do not join in group.

fig4.png (27,244 bytes)   
fig4.png (27,244 bytes)   
DenisChenu

DenisChenu

2022-08-01 18:20

developer   ~71274

https://github.com/LimeSurvey/LimeSurvey/pull/2549/files

I merge

DenisChenu

DenisChenu

2022-08-01 18:20

developer   ~71276

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33695

LimeBot

LimeBot

2022-08-08 09:16

administrator   ~71358

Fixed in Release 5.3.30+220808

Related Changesets

LimeSurvey: master ddf11701

2022-08-01 18:20:39

DenisChenu


Committer: GitHub Details Diff
Fixed issue 18288: Can't assign groups to surveys (#2549)

Fixed issue 18297: Survey permissions menu does not work
Dev: always use getUserGroupList
Dev: this function do the filter, return all usergroup for superadmin
Affected Issues
18288, 18297
mod - application/controllers/admin/SurveyPermission.php Diff File
mod - application/helpers/common_helper.php Diff File

Issue History

Date Modified Username Field Change
2022-08-01 11:55 ujtwrujtwr New Issue
2022-08-01 11:58 ollehar Note Added: 71263
2022-08-01 11:58 ollehar Bug heat 0 => 2
2022-08-01 11:58 ollehar Note Edited: 71263
2022-08-01 12:10 ollehar Note Added: 71264
2022-08-01 12:10 ollehar Assigned To => ollehar
2022-08-01 12:10 ollehar Status new => feedback
2022-08-01 15:43 ujtwrujtwr Note Added: 71265
2022-08-01 15:43 ujtwrujtwr File Added: fig1.png
2022-08-01 15:43 ujtwrujtwr File Added: fig2_debug_msg.png
2022-08-01 15:43 ujtwrujtwr Bug heat 2 => 4
2022-08-01 15:43 ujtwrujtwr Status feedback => assigned
2022-08-01 15:48 ujtwrujtwr Note Added: 71266
2022-08-01 15:48 ujtwrujtwr File Added: fig3.png
2022-08-01 15:51 ollehar Relationship added child of 18224
2022-08-01 15:52 ollehar Note Added: 71268
2022-08-01 15:54 ujtwrujtwr Note Added: 71269
2022-08-01 15:56 ujtwrujtwr Note Added: 71270
2022-08-01 16:01 ollehar Note Added: 71271
2022-08-01 16:06 ujtwrujtwr Note Added: 71272
2022-08-01 16:06 ujtwrujtwr File Added: fig4.png
2022-08-01 18:20 DenisChenu Note Added: 71274
2022-08-01 18:20 DenisChenu Bug heat 4 => 6
2022-08-01 18:20 DenisChenu Changeset attached => LimeSurvey master ddf11701
2022-08-01 18:20 DenisChenu Note Added: 71276
2022-08-01 18:20 DenisChenu Assigned To ollehar => DenisChenu
2022-08-01 18:20 DenisChenu Resolution open => fixed
2022-08-01 18:23 DenisChenu Status assigned => resolved
2022-08-01 18:23 DenisChenu Fixed in Version => 5.3.x
2022-08-08 09:16 LimeBot Note Added: 71358
2022-08-08 09:16 LimeBot Status resolved => closed
2022-08-08 09:16 LimeBot Bug heat 6 => 8