From b3002e01cba06ccf61e64d79aa5102d3dd9e9621 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Sat, 8 May 2004 01:08:30 +0000 Subject: [PATCH] BUGFIX: Modified editquestion code so that "Other" setting cannot be changed once survey is activated. This is important because having "Other" selected requires its own responses field, which is not possible after activating survey. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1009 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/html.php | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/admin/html.php b/admin/html.php index ad082e2b197..8d9a729d083 100644 --- a/admin/html.php +++ b/admin/html.php @@ -1090,8 +1090,9 @@ . "\t\n"; $editquestion .= "\t\n" - . "\t\t$setfont"._QL_OTHER."\n" - . "\t\t$setfont\n" + . "\t\t$setfont"._QL_OTHER."\n"; + + $editquestion .= "\t\t$setfont\n" . "\t\t\t"._AD_YES." \n" - . "\t\n" - . "\t\n" + . "\t\n"; + + $editquestion .= "\t\n" . "\t\t$setfont"._QL_MANDATORY."\n" . "\t\t$setfont\n" . "\t\t\t"._AD_YES." \n" - . "\t\n" - . "\t\n" - . "\t\t$setfont"._QL_OTHER."\n" - . "\t\t$setfont\n" - . "\t\t\t"._AD_NO."\n" - . "\t\n" - . "\t\n" + . "\t\n"; + $editquestion .= "\t\n" + . "\t\t$setfont"._QL_OTHER."\n"; + if ($activated != "Y") + { + $editquestion .= "\t\t$setfont\n" + . "\t\t\t"._AD_NO."\n"; + } + else + { + $editquestion .= "$setfont [{$eqrow['other']}] - "._DE_NOMODIFY." - "._SS_ACTIVE."\n" + . "\t\t\t\n"; + } + $editquestion .= "\t\n"; + + $editquestion .= "\t\n" . "\t\t$setfont"._QL_MANDATORY."\n" . "\t\t$setfont\n" . "\t\t\t