git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: populate ticket data before reply include
[minimedit.git]
/
widget
/
reply.php
diff --git
a/widget/reply.php
b/widget/reply.php
index 53fe34fb32ec31c3e2c5698a72bd798979be35cd..fd01a947f81acb6748fb300b2bac7f00788216ef 100644
(file)
--- a/
widget/reply.php
+++ b/
widget/reply.php
@@
-7,12
+7,11
@@
$journalcol = [
];
if ($_POST) {
];
if ($_POST) {
+ require_once 'upload.inc.php';
try {
try {
- $html = nl2br(htmlspecialchars($_POST['reply']));
- $html = "<p>$html</p>";
$query = $Db->set('comments', [
'page' => $Page,
$query = $Db->set('comments', [
'page' => $Page,
- 'message' =>
$html
,
+ 'message' =>
messagehtml($_POST['reply'])
,
'author' => $User->login,
]);
if (!$query->rowCount()) {
'author' => $User->login,
]);
if (!$query->rowCount()) {
@@
-47,6
+46,7
@@
if ($_POST) {
'value' => $updated->$col,
]);
}
'value' => $updated->$col,
]);
}
+ $Issue = $updated;
}
}
$_POST['reply'] = NULL;
}
}
$_POST['reply'] = NULL;