From 7de5503bbea0431a46a6c309f1f02990d7eb76a7 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 7 Aug 2020 17:25:54 +0800 Subject: [PATCH 1/6] * add new version and upgrade. --- db/update12.4.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 db/update12.4.sql diff --git a/db/update12.4.sql b/db/update12.4.sql new file mode 100644 index 0000000000..86a1e93519 --- /dev/null +++ b/db/update12.4.sql @@ -0,0 +1 @@ +update zt_action set `project` = `extra` where action = 'unlinkedfromproject' and `project` = 0; From 99e92ac05fd6b85d4b2211331a77d50090c2a6bd Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 7 Aug 2020 17:27:54 +0800 Subject: [PATCH 2/6] * Finish task #7611. --- module/repo/control.php | 2 +- module/repo/view/ajaxsidecommits.html.php | 1 - module/repo/view/log.html.php | 5 +---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index 16bc29735d..3fadef9f41 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -548,7 +548,7 @@ class repo extends control if(isset($pathInfo["extension"])) $suffix = strtolower($pathInfo["extension"]); $arrange = $this->cookie->arrange ? $this->cookie->arrange : 'inline'; - if(!empty($_POST)) + if($this->server->request_method) { $oldRevision = isset($this->post->revision[1]) ?$this->post->revision[1] : ''; $newRevision = isset($this->post->revision[0]) ?$this->post->revision[0] : ''; diff --git a/module/repo/view/ajaxsidecommits.html.php b/module/repo/view/ajaxsidecommits.html.php index 1f8e9453dc..5157efda55 100644 --- a/module/repo/view/ajaxsidecommits.html.php +++ b/module/repo/view/ajaxsidecommits.html.php @@ -50,7 +50,6 @@ if(isset($entry)) $pathInfo .= '&type=file';