Skip to content
Snippets Groups Projects

Issue #3321630: share.js incorrectly caches webforms with specific prepopulate fields

Closed jeffam requested to merge issue/webform-3321630:3321630-share.js-caching-prepopulate into 6.x
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -2272,6 +2272,10 @@ class Webform extends ConfigEntityBundleBase implements WebformInterface {
$cache_contexts[] = 'url.query_args';
}
else {
// Add individual prepopulate fields.
foreach ($this->getElementsPrepopulate() as $element_key) {
$cache_contexts[] = 'url.query_args:' . $element_key;
}
// Add source entity type and id query string parameters.
if ($this->getSetting('form_prepopulate_source_entity')) {
$cache_contexts[] = 'url.query_args:source_entity_type';
Loading