Skip to content

Commit d343ba1

Browse files
committed
Merge branch 'v3' of https://github.com/craftcms/cms into develop
2 parents 24a4138 + d65e3c5 commit d343ba1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Fixed a bug where user group condition rules for the default user group weren’t getting matched properly during public registration. ([#12283](https://github.com/craftcms/cms/issues/12283))
1515
- Fixed a bug where HTML tags within field labels, instructions, tips, and warnings weren’t always getting escaped.
1616
- Fixed a bug where the sidebar scroll position wasn’t retained when selecting a new source on element index pages. ([#12523](https://github.com/craftcms/cms/issues/12523))
17+
- Fixed a bug where `resave/*` commands’ output didn’t take the offset into account. ([#12526](https://github.com/craftcms/cms/issues/12526))
1718
- Deprecated `craft\helpers\DateTimeHelper::timeZoneAbbreviation()`.
1819
- Deprecated `craft\helpers\DateTimeHelper::timeZoneOffset()`.
1920

src/console/controllers/ResaveController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,10 @@ private function _resaveElements(ElementQueryInterface $query): int
468468
return ExitCode::OK;
469469
}
470470

471+
if ($query->offset) {
472+
$count = max($count - (int)$query->offset, 0);
473+
}
474+
471475
if ($query->limit) {
472476
$count = min($count, (int)$query->limit);
473477
}

0 commit comments

Comments
 (0)