mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 15:57:01 +02:00
Fix issue in PageFrontEdit when two different pages being saved at the same time
This commit is contained in:
@@ -1256,7 +1256,7 @@ class PageFrontEdit extends WireData implements Module {
|
|||||||
|
|
||||||
if(count($changes)) {
|
if(count($changes)) {
|
||||||
try {
|
try {
|
||||||
$page->save();
|
$pages->save($page, [ 'uncacheAll' => false ]);
|
||||||
$data['status'] = count($errors) ? 2 : 1;
|
$data['status'] = count($errors) ? 2 : 1;
|
||||||
}
|
}
|
||||||
catch(\Exception $e) {
|
catch(\Exception $e) {
|
||||||
|
Reference in New Issue
Block a user