Problem/Motivation

After updating to version 3.1.3 and running the database update to make the admin title field revisionable, all the previously existing values for admin title are gone.

Steps to reproduce

  1. on a fresh Drupal site, install Paragraph blocks 3.1.2
  2. create a paragraph type and add it to a content type
  3. create content add a paragraph with an admin title
  4. upgrade to Paragraph blocks 3.1.3 and run the database update
  5. verify the admin title in the paragraph you just created is gone

Proposed resolution

Retain existing Admin title values.

CommentFileSizeAuthor
#4 3328910-4.patch3.23 KBbasvredeling
#2 3328910.patch3.09 KBuditrawat

Comments

melissag created an issue. See original summary.

uditrawat’s picture

StatusFileSize
new3.09 KB

Added a patch to restore data to the revision table.

uditrawat’s picture

Status: Active » Needs review
basvredeling’s picture

Version: 3.1.3 » 3.x-dev
StatusFileSize
new3.23 KB

@melissag does the supplied patch fix your problem when you re-run update hook paragraph_blocks_update_9301()? Or do we need to fix this retroactively and move the data migration to a new update hook?

basvredeling’s picture

Status: Needs review » Fixed
basvredeling’s picture

Thanks for your contribution @uditrawat

basvredeling’s picture

Status: Fixed » Closed (fixed)