Skip to content

Commit

Permalink
Fixed issue #11284: Unstyled error message, when deleting Q1 the mess…
Browse files Browse the repository at this point in the history
…age error appears because Q2 needs Q1. That’s correct but as you've said it doesn’t look so nice.
  • Loading branch information
LouisGac committed Jun 2, 2016
1 parent 5f7ff82 commit d12d894
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions application/controllers/admin/questions.php
Expand Up @@ -1424,11 +1424,8 @@ public function delete($surveyid, $gid, $qid)
if (isset($qidarray))
$qidlist = implode(", ", $qidarray);
$message =gT("Question could not be deleted. There are conditions for other questions that rely on this question. You cannot delete this question until those conditions are removed.");
$message .="<br /><a href='". $this->getController()->createUrl("admin/expressions/sa/survey_logic_file/sid/{$surveyid}")."' >".gT("Look at survey logic files")."</a>.";
$this->getController()->error(
$message,
$this->getController()->createUrl("admin/survey/sa/view/surveyid/{$surveyid}/gid/{$gid}/qid/{$qid}")
);
Yii::app()->setFlashMessage($message,'error');
$this->getController()->redirect(array('admin/survey/sa/listquestions/surveyid/' . $surveyid ));
}
else
{
Expand Down

0 comments on commit d12d894

Please sign in to comment.