From 365b23b612a687a4813a8d70c930979e8aeaa374 Mon Sep 17 00:00:00 2001 From: TickTackk Date: Wed, 18 Mar 2020 21:28:24 +0530 Subject: [PATCH 1/3] Increase version --- addon.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon.json b/addon.json index 1f139af..15bb059 100644 --- a/addon.json +++ b/addon.json @@ -2,8 +2,8 @@ "legacy_addon_id": "", "title": "Change Content Owner", "description": "Change Content Owner is an add-on that allows you to change content owner", - "version_id": 2000970, - "version_string": "2.0.9", + "version_id": 2001070, + "version_string": "2.0.10", "dev": "TickTackk", "dev_url": "https://xenforo.com/community/members/batpool52.90375/", "faq_url": "", From 095a3ae610a740fca627d11b2ee30d742134256b Mon Sep 17 00:00:00 2001 From: TickTackk Date: Wed, 18 Mar 2020 21:33:14 +0530 Subject: [PATCH 2/3] closes #57 --- ControllerPlugin/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ControllerPlugin/Content.php b/ControllerPlugin/Content.php index bf88ddc..107dfec 100644 --- a/ControllerPlugin/Content.php +++ b/ControllerPlugin/Content.php @@ -197,7 +197,7 @@ protected function setNewOwnerDateTimeAndInterval(AbstractService $service, /** $newTimestamp = $ownerChangerSvc->getNewTimestamp($content); } - if ($oldTimestamp !== $newTimestamp && !$handler->canChangeDate($content, $service->getNewTimestamp($content), $error)) + if ($oldTimestamp !== $newTimestamp && !$handler->canChangeDate($content, $newTimestamp, $error)) { throw $this->exception($this->noPermission($error)); } From b324fa9230f9129bf42bf3a34e503ab501d0b2d6 Mon Sep 17 00:00:00 2001 From: TickTackk Date: Wed, 18 Mar 2020 21:34:24 +0530 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66ff385..b2e7d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========================== +## 2.0.10 (`2001070`) + +- **Fix:** Call to undefined method getNewTimestamp (#57) + ## 2.0.9 (`2000970`) - **Fix:** Undefined index exception thrown when using inline moderation and invalid date is set (#52)