Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #14954: Charts in Statistics are not showing completely
- Loading branch information
1 parent
6f2d32c
commit f933cea
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2165,6 +2165,7 @@ protected function displayResults($outputs, $results, $rt, $outputType, $surveyi | |
$sDatabaseType = Yii::app()->db->getDriverName(); | ||
$tempdir = Yii::app()->getConfig("tempdir"); | ||
$astatdata = array(); | ||
$TotalIncomplete = 0; | ||
|
||
$sColumnName = null; | ||
|
||
|
@@ -3400,6 +3401,11 @@ protected function displayResults($outputs, $results, $rt, $outputType, $surveyi | |
// Labels for graphs | ||
$iMaxLabelLength = 0; | ||
|
||
// add "Not completed or Not displayed" label if missing | ||
if ($_POST['noncompleted'] == 0 && count($labels) > count($aGraphLabels)){ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Shnoulle
Collaborator
|
||
$aGraphLabels[] = gT("Not completed or Not displayed"); | ||
} | ||
|
||
foreach ($aGraphLabels as $key => $label) { | ||
$cleanLabel = $label; | ||
$cleanLabel = viewHelper::flatEllipsizeText($cleanLabel, true, 20); | ||
|
$_POST['noncompleted']
?With debug=0 : no
noncompleted
in $_POST :$_POST['noncompleted'] == 0 === true
It's what you want ?then : for debug>0
!App()->getRequest()->getPost('noncompleted')
, no ?