Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In panelizer_update_7115()
Update script clones pane
$new_pane = clone $display->content[$pid];
And then adds panes for revisions using db_insert
$new_pane->pid = db_insert('panels_pane')
->fields(array(
'did' => $new_pane->did,
'panel' => $new_pane->panel,
'type' => $new_pane->type,
'subtype' => $new_pane->subtype,
'shown' => $new_pane->shown,
'access' => serialize($new_pane->access),
'configuration' => serialize($new_pane->configuration),
'cache' => serialize($new_pane->cache),
'style' => serialize($new_pane->style),
'css' => serialize($new_pane->css),
'extras' => serialize($new_pane->extras),
'locks' => serialize($new_pane->locks),
'uuid' => $new_pane->uuid
))
->execute();
So, position field is not recorded.
I suggest to add
'position' => $new_pane->position,
Comment | File | Size | Author |
---|---|---|---|
#2 | panelizer-7115_update_data_loss_position-2795735-2.patch | 441 bytes | azinck |
|
Comments
Comment #2
azinck CreditAttribution: azinck commentedThis does seem quite important.
Comment #4
DamienMcKennaOh goodness! Thanks for catching that. And for the patch. Committed.