Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new content state service #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.9.1 (Unreleased)
-------------------
- Enh #263: Use new content state service

1.9.0 (May 1, 2023)
-------------------
- Enh #258: Fix creating of page with same title used for soft deleted page
Expand Down Expand Up @@ -230,4 +234,3 @@ Changelog
1.1.10 - March 14, 2018
------------------------
- Enh: Added Page count configuration

2 changes: 1 addition & 1 deletion models/WikiPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function validateTitle($attribute, $params)
$page = $query->one();

if ($page instanceof WikiPage) {
if ($page->content->state === Content::STATE_DELETED) {
if ($page->content->getStateService()->isDeleted()) {
$this->addError('title', Yii::t('WikiModule.base', 'Page title already in use for a deleted page!'));
} else {
$this->addError('title', Yii::t('WikiModule.base', 'Page title already in use!'));
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Wiki",
"description": "Collect and share information with your very own Wiki.",
"keywords": ["wiki"],
"version": "1.9.0",
"version": "1.9.1",
"humhub": {
"minVersion": "1.14"
},
Expand Down