Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #19344: Survey activation error when create a new survey …
…using MSSQL (#3696)
- Loading branch information
Showing
4 changed files
with
38 additions
and
17 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
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
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
19 changes: 9 additions & 10 deletions
19
application/views/surveyAdministration/surveyActivation/_activation_error.php
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 |
---|---|---|
@@ -1,36 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* View for the message box when survey activation goes wrong. | ||
*/ | ||
|
||
?> | ||
|
||
<div id="pjax-content" class="ls-flex-column align-items-flex-start align-content-center col-11 ls-flex-item transition-animate-width"> | ||
<div class="ls-flex-column fill col-12 overflow-enabled"> | ||
<div class="row col-12"> | ||
<h3 class="pagetitle"><?php eT('Survey activation error'); ?></h3> | ||
<?php if ($result['error'] == 'surveytablecreation'): ?> | ||
<?php | ||
<?php if (App()->getConfig('debug')) : ?> | ||
<p><?php eT('Database error'); ?></p> | ||
<pre> | ||
<?php echo $result['error']; ?> | ||
</pre> | ||
<?php elseif ($result['error'] == 'surveytablecreation' && !App()->getConfig('debug')) : | ||
$this->widget('ext.AlertWidget.AlertWidget', [ | ||
'header' => gT("The survey response table could not be created."), | ||
'text' => gT("Usually this is caused by having too many (sub-)questions in your survey. Please try removing questions from your survey."), | ||
'type' => 'warning', | ||
]); | ||
?> | ||
<?php else: ?> | ||
<?php else : ?> | ||
<?php | ||
$this->widget('ext.AlertWidget.AlertWidget', [ | ||
'text' => gT("Timings table could not be created."), | ||
'type' => 'warning', | ||
]); | ||
?> | ||
<?php endif; ?> | ||
|
||
<?php if (App()->getConfig('debug')): ?> | ||
<p><?php eT('Database error'); ?></p> | ||
<pre> | ||
<?php echo $result['error']; ?> | ||
</pre> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
</div> |