Skip to content

Commit

Permalink
Merge branch '5.2' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 19, 2024
2 parents 90c2b85 + 12f8218 commit 0a39c9e
Show file tree
Hide file tree
Showing 4 changed files with 456 additions and 859 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "NODE_ENV=development webpack --progress",
"watch": "yarn && NODE_ENV=development webpack --watch --progress",
"css": "WEBPACK_CHILD=css npm run build",
"lint": "eslint client/src; stylelint client/src/**/*.scss"
"lint": "eslint client/src; stylelint client/src"
},
"repository": {
"type": "git",
Expand All @@ -33,7 +33,7 @@
"redux": "^4.2.0"
},
"devDependencies": {
"@silverstripe/eslint-config": "^1.2.1",
"@silverstripe/eslint-config": "^1.3.0",
"@silverstripe/webpack-config": "^2.1.0",
"webpack": "^5.74.0",
"webpack-cli": "^5.0.0"
Expand Down
6 changes: 3 additions & 3 deletions src/Compatibility/ContentReviewCompatability.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class ContentReviewCompatability
public static function start()
{
$compatibility = [
self::SUBSITES => null,
ContentReviewCompatability::SUBSITES => null,
];

if (ClassInfo::exists(Subsite::class)) {
$compatibility[self::SUBSITES] = Subsite::$disable_subsite_filter;
$compatibility[ContentReviewCompatability::SUBSITES] = Subsite::$disable_subsite_filter;
Subsite::disable_subsite_filter(true);
}

Expand All @@ -41,7 +41,7 @@ public static function start()
public static function done(array $compatibility)
{
if (class_exists(Subsite::class)) {
Subsite::$disable_subsite_filter = $compatibility[self::SUBSITES];
Subsite::$disable_subsite_filter = $compatibility[ContentReviewCompatability::SUBSITES];
}
}
}
4 changes: 2 additions & 2 deletions src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function updateSettingsFields(FieldList $fields)
Requirements::javascript('silverstripe/contentreview:client/dist/js/contentreview.js');
// Display read-only version only
if (!Permission::check("EDIT_CONTENT_REVIEW_FIELDS")) {
$schedule = self::get_schedule();
$schedule = SiteTreeContentReview::get_schedule();
$contentOwners = ReadonlyField::create(
"ROContentOwners",
_t(__CLASS__ . ".CONTENTOWNERS", "Content Owners"),
Expand Down Expand Up @@ -429,7 +429,7 @@ public function updateSettingsFields(FieldList $fields)
$reviewFrequency = DropdownField::create(
"ReviewPeriodDays",
_t(__CLASS__ . ".REVIEWFREQUENCY", "Review frequency"),
self::get_schedule()
SiteTreeContentReview::get_schedule()
)
->addExtraClass('custom-setting')
->setDescription(_t(
Expand Down
Loading

0 comments on commit 0a39c9e

Please sign in to comment.