View Issue Details

This bug affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
04425Bug reportsSurvey participants (Tokens)public2010-07-06 11:22
ReporterRomain Assigned Tomdekker  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Fixed in Version1.90RC1 
Summary04425: No Group name and description displayed (LimeSurvey 1.90RC1 Build 8819)
Description

Hi,

It seems there is a bug when checking to display or not group name and description in templates.

If you have a group of questions, group name and description are no more displayed (before the first question).

In common.php arround line 2766 :
if(
$showgroupinfo == 'both' ||
$showgroupinfo == 'name' ||
($showgroupinfo == 'choose' && $thissurvey['showgroupinfo'] == 'B') ||
($showgroupinfo == 'choose' && $thissurvey['showgroupinfo'] == 'N')
)
{
if (strpos($line, "{GROUPNAME}") !== false) $line=str_replace("{GROUPNAME}", $groupname, $line);
}
else
{
if (strpos($line, "{GROUPNAME}") !== false) $line=str_replace("{GROUPNAME}", '' , $line);
};
if(
$showgroupinfo == 'both' ||
$showgroupinfo == 'number' ||
($showgroupinfo == 'choose' && $thissurvey['showgroupinfo'] == 'B') ||
($showgroupinfo == 'choose' && $thissurvey['showgroupinfo'] == 'D')
)
{
if (strpos($line, "{GROUPDESCRIPTION}") !== false) $line=str_replace("{GROUPDESCRIPTION}", $groupdescription, $line);

$showgroupinfo is set to null, and test never validate (and {GROUPNAME} and {GROUPDESCRIPTION} are emplty).

$thissurvey['showgroupinfo'] key does not exist.

I fixed this problem by removing this two test, but as I dont know about the logic about $showgroupinfo and $thissurvey, you may have a look.

I hope this will help.

Bye
Romain

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)8819
I will donate to the project if issue is resolved
Browser
Database type & versionmysql
Server OS (if known)ubuntu
Webserver software & version (if known)apache 2
PHP Version5.2

Relationships

has duplicate 04455 closedc_schmitz Group Title & Description not appearing 

Users monitoring this issue

There are no users monitoring this issue.

Activities

mdekker

mdekker

2010-06-16 15:10

reporter   ~12227

My bad, was testing a patch for another issue and by accident committed this code...

mdekker

mdekker

2010-06-16 15:34

reporter   ~12228

Fixed in svn 8843 by partially reverting previous commit (8789)

Issue History

Date Modified Username Field Change
2010-06-15 18:59 Romain New Issue
2010-06-15 18:59 Romain Status new => assigned
2010-06-15 18:59 Romain Assigned To => user372
2010-06-16 15:09 mdekker Assigned To user372 => mdekker
2010-06-16 15:10 mdekker Note Added: 12227
2010-06-16 15:34 mdekker Note Added: 12228
2010-06-16 15:34 mdekker Status assigned => resolved
2010-06-16 15:34 mdekker Fixed in Version => 1.90RC1
2010-06-16 15:34 mdekker Resolution open => fixed
2010-07-05 00:24 c_schmitz Relationship added has duplicate 04455
2010-07-06 11:22 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)