We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3a117b + 6703fcb commit e767fd9Copy full SHA for e767fd9
src/Fieldtypes/Concerns/UsesFields.php
@@ -236,7 +236,10 @@ protected function getCollections()
236
237
// We have to do this because the collection fields value may have changed
238
// but the parent object has not yet been updated with the new value
239
- if ($post = request()->post()) {
+ // We only want to do this during save requests, not publish requests, so
240
+ // we check for the presence of the _blueprint key as well
241
+ $post = request()->post();
242
+ if (isset($post['_blueprint'])) {
243
return data_get($post, $key);
244
}
245
0 commit comments