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
Note: See
TracTickets for help on using
tickets.

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().