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:
@@ -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);
|
||||
|
||||
@@ -113,7 +113,10 @@ if (isset($_POST['submit']))
|
||||
|
||||
$sql = "DELETE
|
||||
FROM operator_skill
|
||||
WHERE 1";
|
||||
WHERE operator_id IN (
|
||||
SELECT operator_id
|
||||
FROM operator
|
||||
WHERE enabled = 1)";
|
||||
|
||||
$db->Execute($sql);
|
||||
|
||||
@@ -137,6 +140,7 @@ $outcome_types = $db->GetAll($sql);
|
||||
|
||||
$sql = "SELECT operator_id,firstname as description
|
||||
FROM operator
|
||||
WHERE enabled = 1
|
||||
ORDER by operator_id ASC";
|
||||
|
||||
$operators = $db->GetAll($sql);
|
||||
|
||||
Reference in New Issue
Block a user