summaryrefslogtreecommitdiffstats
path: root/app/model/issue.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/model/issue.php')
-rw-r--r--app/model/issue.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/model/issue.php b/app/model/issue.php
index dd904e4..41392e8 100644
--- a/app/model/issue.php
+++ b/app/model/issue.php
@@ -25,6 +25,7 @@ if (isAction("iss-mesg-add"))
$form->text("issue");
$form->text("mesg", false);
$form->text("assignee");
+ $form->flag("nopop");
if (!$form->populate(input()))
return;
@@ -48,7 +49,9 @@ if (isAction("iss-mesg-add"))
$mesg = mesg::initNew($form->mesg, $user, $issue);
if ($mesg->setAttachment("attachment"))
- logError(NOTICE, "Saved attachment " . $mesg->attachment);
+ {
+ //logError(NOTICE, "Saved attachment " . $mesg->attachment);
+ }
}
if (isset(input()['advIssue']))
@@ -69,7 +72,6 @@ if (isAction("iss-mesg-add"))
else
{
$issue->signoffAssignee($user);
- logError(NOTICE, "Issue #" . $issue->numb . " closed");
$log = mesg::initNewLog("%s closed issue", $user, $issue);
}
}
@@ -101,12 +103,12 @@ if (isAction("iss-mesg-add"))
$issue->signoffAssignee($user);
$issue->close($user);
- logError(NOTICE, "Issue #" . $issue->numb . " closed");
$log = mesg::initNewLog("%s closed issue", $user, $issue);
}
/* automatically redisplay issue modal */
- setAutoModal("#issueModal-" . $issue->guid);
+ if ($form->nopop != "1")
+ setAutoModal("#issueModal-" . $issue->guid);
}
?>