Skip to content

Commit

Permalink
Don't validate on field resave during migration
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnynotsolucky committed Oct 23, 2023
1 parent 27f9fbb commit a2df422
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ public function resaveFields()
continue;
}

if (! $fieldsService->saveField($field)) {
throw new \RuntimeException(Json::encode($field->getErrors()));
if (! $fieldsService->saveField($field, false)) {
throw new \RuntimeException(Json::encode([
'field' => $field->handle,
'type' => $field::class,
'errors' => $field->getErrors(),
]));
}
}
}
Expand Down

0 comments on commit a2df422

Please sign in to comment.