summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/class/issue.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/class/issue.class.php b/app/class/issue.class.php
index 47adfa1..ee4693f 100644
--- a/app/class/issue.class.php
+++ b/app/class/issue.class.php
@@ -115,6 +115,12 @@ class issue extends obj
|| !isset($assigner->guid))
return false;
+ /* 'reset' any existing assignee slot. Remove any signoff or dismissal, and
+ * update the assigner info. AKA, just recreate the DB entry. */
+ $query = "DELETE FROM assignees WHERE guid = '" . database::esc($this->guid) .
+ "' AND assignee = '" . database::esc($assignee->guid) . "'";
+ database::query($query);
+
$query = "INSERT INTO assignees (guid, assignee, assigner, assigned)" .
" VALUES ('" . database::esc($this->guid) . "', '" .
database::esc($assignee->guid) . "', '" . database::esc($assigner->guid) .