diff --git a/admin/set_outcomes.php b/admin/set_outcomes.php
index a136fea9..9f11402e 100644
--- a/admin/set_outcomes.php
+++ b/admin/set_outcomes.php
@@ -197,8 +197,14 @@ if (isset($_GET['qid'])) {
/* for default outcomes */
if (isset($_GET['default'])) {
- $sql = "SELECT o.*, ot.description as type,
- CONCAT('') as `delay`,
+ /* allow delay edit only to superadmins (currenlty admin) */
+ if ($_SESSION['user'] === "admin"){
+ $delay = "CONCAT('') ";
+ }
+ else {
+ $delay = "CONCAT('', o.default_delay_minutes ,' ')";
+ }
+ $sql = "SELECT o.*, ot.description as type, $delay as `delay`,
CONCAT('
" . T_("Yes") . "' ELSE 'default\">" . T_("No") . "' END , '
') as tryanother,
CONCAT(' " . T_("Yes") . "' ELSE 'default\">" . T_("No") . "' END , '
') as tryagain,
CONCAT(' " . T_("Yes") . "' ELSE 'default\">" . T_("No") . "' END , '
') as contacted,
@@ -214,9 +220,6 @@ if (isset($_GET['default'])) {
$row = array("outcome_id","description","select","type","delay","contacted","tryanother","tryagain","eligible","require_note");
$hdr = array(T_("Outcome ID"),T_("Description"),T_("Default"),T_("Outcome type"),T_("Delay, min"),T_("Contacted"),T_("Try another"),T_("Try again"),T_("Eligible"),T_("Require note"));
- /* allow delay edit only to superadmins (currenlty admin) */
- if ( $_SESSION['user'] != "admin"){ unset($row[4]); unset($hdr[4]); }
-
$hid = "default";
$value = "";