X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/5adffaba1226d6a75a1937e1ef836f34c991f7fd..8f05d49e133e9ca27d20bfc3835fc08812a683cb:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 4c7a304..1071976 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -19,6 +19,10 @@ if ($_POST) { if (isset($Issue)) { $row = ['updated' => ['now()']]; + foreach (['assign'] as $col) { + if (!isset($_POST[$col])) continue; + $row[$col] = $_POST[$col] ?: NULL; + } $Db->set('issues', $row, ['id = ?', $Issue->id]); } $_POST['reply'] = NULL; @@ -45,6 +49,17 @@ while ($row = $query->fetch()) { if ($User) { print '
  • '; print '
    '; + if (isset($Issue) and $User->admin("edit $Page")) { + print '

    '; + printf( + ' ' + . ''."\n", + 'assign', + 'Toegewezen aan', + htmlspecialchars($Issue->assign ?? '') + ); + print "

    \n"; + } printf(''."\n", 'reply', "Bericht van {$User->login}",