Ticket #4216 (closed Bug: fixed)

Opened 7 years ago

2.1alpha2 migration repeatedly adds 'contents' action

Reported by: justizin Owned by:
Priority: minor Milestone: 2.1
Component: Upgrade/Migration Version:
Severity: Keywords:
Cc:

Description

if you run this migration more than once, it will add more than one 'contents' action, resulting in more than one 'contents' link at the top of the view.

Change History

comment:1 Changed 7 years ago by hannosch

You can reproduce this by enforcing a migration from 2.1alpha1 in a beta1-site.

The problem is the changed conditions on the actions (aq_parent -> getParentNode).

In migrations/v2_1/alphas.py in addEditContentActions() the batch, cut, paste and delete actions are added in the "second enforced migration", because it checks on the action condition to be equal. But the conditions have been changed in betas.py fixContentActionConditions().

A simple fix would be to remove the check on condition equality in alphas.py addEditContentActions().

comment:2 Changed 7 years ago by shh

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by r7475.

comment:3 Changed 7 years ago by alecm

Actually, my r7472, fixed it first, by removing them all and adding one new one. ;-P

Note: See TracTickets for help on using tickets.