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;
if ($User) {
print '<li>';
print '<form method="post" action="">';
+ if (isset($Issue) and $User->admin("edit $Page")) {
+ print '<p>';
+ printf(
+ '<label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value="%s" />'."\n",
+ 'assign',
+ 'Toegewezen aan',
+ htmlspecialchars($Issue->assign ?? '')
+ );
+ print "</p>\n";
+ }
printf('<textarea id="%s" name="%1$s" cols=60 rows=3 placeholder="%s">%s</textarea>'."\n",
'reply',
"Bericht van {$User->login}",