Skip to content
Snippets Groups Projects

Resolve #3526907 Client auto-save conflicts

Files
14
@@ -481,11 +481,6 @@ final class ApiLayoutController {
}
private function validateAutoSaves(EntityInterface $entity, array $body): void {
// @todo Remove the special case for testing in https://drupal.org/i/3526907.
// @phpstan-ignore-next-line
if (!(drupal_valid_test_ua() && \Drupal::installProfile() !== 'nightwatch_testing')) {
return;
}
if (!\array_key_exists('autoSaves', $body)) {
throw new BadRequestHttpException('Missing autoSaves');
}
Loading