From 768950da35a9dc4159ef160faa1ba1f78a12daba Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Tue, 23 Apr 2013 14:53:32 +1000 Subject: [PATCH] Display if assigned questionnaires are enabled or not --- nocaseavailable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nocaseavailable.php b/nocaseavailable.php index c0d47dce..5295b013 100644 --- a/nocaseavailable.php +++ b/nocaseavailable.php @@ -77,7 +77,7 @@ $operator_id = get_operator_id(); //you have not been assigned to a questionnaire -$sql = "SELECT oq.questionnaire_id, q.description +$sql = "SELECT oq.questionnaire_id, q.description, CASE WHEN q.enabled = 1 THEN '" . T_("Enabled") . "' ELSE '" . T_("Disabled") . "' END as enabled FROM operator_questionnaire as oq, questionnaire as q WHERE oq.operator_id = '$operator_id' AND q.questionnaire_id = oq.questionnaire_id"; @@ -88,7 +88,7 @@ $rs = $db->GetAll($sql);