Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
webform
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
webform
Merge requests
!467
Issue
#3446510
: Allow caching of draft webforms
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3446510
: Allow caching of draft webforms
issue/webform-3446510:3446510-allow-caching-of
into
6.2.x
Overview
0
Commits
3
Pipelines
3
Changes
1
Open
Omar Mohamad - El Hassan Lopesino
requested to merge
issue/webform-3446510:3446510-allow-caching-of
into
6.2.x
10 months ago
Overview
0
Commits
3
Pipelines
3
Changes
1
Expand
Closes
#3446510
0
0
Merge request reports
Compare
6.2.x
version 2
77b27345
10 months ago
version 1
2347b98e
10 months ago
6.2.x (HEAD)
and
latest version
latest version
5601a85d
3 commits,
10 months ago
version 2
77b27345
2 commits,
10 months ago
version 1
2347b98e
1 commit,
10 months ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Element/Webform.php
+
2
−
1
Options
@@ -142,7 +142,8 @@ class Webform extends RenderElement {
// Allow anonymous drafts to be restored.
// @see \Drupal\webform\WebformSubmissionForm::buildForm
if
(
\Drupal
::
currentUser
()
->
isAnonymous
()
&&
$webform
->
getSetting
(
'draft'
)
===
WebformInterface
::
DRAFT_ALL
)
{
&&
$webform
->
getSetting
(
'draft'
)
===
WebformInterface
::
DRAFT_ALL
&&
empty
(
$element
[
'#entity'
]))
{
$element
[
'#cache'
][
'max-age'
]
=
0
;
// @todo Remove once bubbling of element's max-age to page cache is fixed.
// @see https://www.drupal.org/project/webform/issues/3015760
Loading