fix pre-filled tags in doc upload

This commit is contained in:
Tomáš Mládek 2019-05-05 13:00:39 +02:00
parent 563c0cfe54
commit d7b9df6733
2 changed files with 4 additions and 1 deletions

View file

@ -19,7 +19,7 @@
}
echo implode(", ", $tags);
} else if (!empty($_GET["tag"])) {
echo $_GET["tag"];
echo $tag["Name"];
}
?>"><br>
<input type="submit">

View file

@ -39,6 +39,9 @@ if (isset($_SESSION['ID'])) {
}
break;
case "new_item":
if (!empty($_GET["tag"])) {
$page->tag = $db->fetchTag($_GET["tag"]);
}
$content = $page->render("admin_doc_edit.php");
break;
case "edit_item":