When going back from the preview page to the form, the temp store is deleted. This is problematic because if you then by accident reload the edit form, you'll loose any previous changes. We need to move following lines:

      // Remove the entry from the temp store.
      $store->delete($uuid);

to the save method of the nodeForm.

CommentFileSizeAuthor
#1 2326727-1.patch2.01 KBswentel
#1 2326727-1-fail.patch1020 bytesswentel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

swentel’s picture

Status: Active » Needs review
FileSize
1020 bytes
2.01 KB
swentel’s picture

Issue summary: View changes

The last submitted patch, 1: 2326727-1-fail.patch, failed testing.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Looks great!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Awesome, thanks for the fast turnaround on this!

Committed and pushed to 8.x. Thanks!

  • webchick committed bfcd644 on 8.0.x
    Issue #2326727 by swentel: Fixed Delete tempstore entry of preview in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.