1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-07 07:16:51 +02:00

Minor fix to PagesEditor::saveStatus() method

This commit is contained in:
Ryan Cramer
2024-07-05 15:49:14 -04:00
parent e08fa2e957
commit acc7ca2d91

View File

@@ -984,7 +984,7 @@ class PagesEditor extends Wire {
*
*/
public function saveStatus(Page $page) {
return $this->savePageStatus($page, $page->status) > 0;
return $this->savePageStatus($page, $page->status, false, 2) > 0;
}
/**