From 40244138f3fbe901a2f723312ffe6541c077d478 Mon Sep 17 00:00:00 2001 From: myname Date: Sun, 5 Nov 2023 09:40:12 -0600 Subject: [PATCH] Remove redundant button Fix parent-id type issue --- ext/relationships/theme.php | 2 +- themes/danbooru2/view.theme.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/relationships/theme.php b/ext/relationships/theme.php index 78b78f89d..c3cacf455 100644 --- a/ext/relationships/theme.php +++ b/ext/relationships/theme.php @@ -40,7 +40,7 @@ public function get_parent_editor_html(Image $image): HTMLElement return SHM_POST_INFO( "Parent", !$user->is_anonymous(), - $image->parent_id ?: "None", + strval($image->parent_id) ?: "None", INPUT(["type"=>"number", "name"=>"tag_edit__parent", "value"=>$image->parent_id]) ); } diff --git a/themes/danbooru2/view.theme.php b/themes/danbooru2/view.theme.php index 4a68b7a37..130eb81d0 100644 --- a/themes/danbooru2/view.theme.php +++ b/themes/danbooru2/view.theme.php @@ -72,7 +72,6 @@ protected function build_navigation(Image $image): string - ";