Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

welcomeModal is not displayed - possible bug

  • roehle
  • roehle's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172269 by roehle
Hi there,

we noticed that the welcomeModal intended for first time users is not being displayed (\application\views\admin\super\welcome.php) in our upgraded installation (3.14.2+180807).
Diggin into it we came to the following:
If it is displayed depends on
Code:
if($countSurveyList==0  && Permission::model()->hasGlobalPermission('surveys','create')
If you check the definition of the variable $countSurveyList you find that in \application\controllers\admin\index.php
it is defined as
Code:
$aData['countSurveyList'] = Survey::model()->count();
(counting all surveys of the installation) whereas it used to be
Code:
$aData['countSurveyList'] = count(getSurveyList(true));
(all surveys owned by currently logged in user) which still works if it is changed back to that.
Is this a bug or are we missing something? It does not make sense to use the number of all available surveys here, right?

Stefan
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #172276 by tpartner
Replied by tpartner on topic welcomeModal is not displayed - possible bug
Please file a bug report.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose