Commit 71ff46e7 authored by Jacob Rockowitz's avatar Jacob Rockowitz
Browse files

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

parent 0ee592b9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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';