2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

When assigning skills and questionnaires to operators, respect their "enabled" or "disabled" state

Only display performance for enabled operators
This commit is contained in:
azammitdcarf
2011-02-03 05:34:05 +00:00
parent 8a2d53be65
commit 0adf4a9d2d
3 changed files with 18 additions and 1 deletions

View File

@@ -117,6 +117,10 @@ if (isset($_POST['submit']))
WHERE questionnaire_id IN (
SELECT questionnaire_id
FROM questionnaire
WHERE enabled = 1)
AND operator_id IN (
SELECT operator_id
FROM operator
WHERE enabled = 1)";
$db->Execute($sql);
@@ -142,6 +146,7 @@ $questionnaires = $db->GetAll($sql);
$sql = "SELECT operator_id,firstname as description
FROM operator
WHERE enabled = 1
ORDER by operator_id ASC";
$operators = $db->GetAll($sql);