From fc1eaa7b91bd44d7939c67b1d3d8aef50af3c5db Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 26 Nov 2021 00:58:28 +0100 Subject: [PATCH] issue: reply edit of page and announce columns --- issue/index.php | 9 ++++++++- upload.inc.php | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/issue/index.php b/issue/index.php index 4f0f57f..51d1de4 100644 --- a/issue/index.php +++ b/issue/index.php @@ -21,11 +21,18 @@ if ($id and ctype_digit($id)) { )->fetch(); if (!$row) throw new Exception('Antwoordnummer niet gevonden'); - print "

{$Page->title}

\n"; printf('
', $Page->handler ); + print "

{$Page->title}

\n"; printf(''."\n", 'id', $row->id); + printf( + '' + . '' + . ''."\n

", + 'announce', $row->announced ? ' checked' : '', 'Aangekondigd' + ); + printf('

'."\n", 'page', $row->page); printf(''."\n", 'reply', htmlspecialchars($row->raw) diff --git a/upload.inc.php b/upload.inc.php index 962bedc..22db140 100644 --- a/upload.inc.php +++ b/upload.inc.php @@ -111,6 +111,9 @@ function createcomment($input, &$Issue = NULL) if (isset($input['announce'])) { $reply['announced'] = !!$input['announce']; } + if (isset($input['page'])) { + $reply['page'] = $input['page']; + } if (isset($input['id'])) { $newcomment = $input['id']; -- 2.30.0