Defect #19657

Can't reorder activities after disabling activities on a project

Added by Zer Guz over 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Administration
Target version:3.2.0
Resolution:Fixed Affected version:3.0.0

Description

Steps to reproduce:
  • Add an activity item -> it appears in the bottom of the list.
  • Try to move this last item one level up -> it doesn't move.

Moving the item directly to the top works. Then you can move it one level down and up. Only the last item won't move one level up.


Related issues

Related to Redmine - Defect #20117: Activities set as inactive missing in spent time report f... Closed

Associated revisions

Revision 14627
Added by Jean-Philippe Lang almost 3 years ago

Forces enumeration override position to the same as its parent (#19657).

Revision 14633
Added by Jean-Philippe Lang almost 3 years ago

SQL error with MySQL (#19657).

Revision 14634
Added by Jean-Philippe Lang almost 3 years ago

Update enumeration ovverides with their parents (#19657).

History

#1 Updated by Toshi MARUYAMA about 3 years ago

  • Status changed from New to Needs feedback

I cannot reproduce on 3.0.3 and 2.6.5.

#2 Updated by Zer Guz about 3 years ago

I tried with 3.0.1 and the problem is there. I will try with 3.0.3 as soon as I have the opportunity.

Clarifications:
  • This is happening in Administration -> Enumerations -> Activities (time tracking).
  • The problem always happens for me after I add a new item. Trying this with the last item that you already have in this enumeration might not reproduce the problem.
  • I tried with Firefox and IE: the problem happens in both.

#3 Updated by Toshi MARUYAMA about 3 years ago

I can reproduce first time for new item on 2.6.5, but work second time.
I cannot reproduce on 3.0.3.

#4 Updated by Toshi MARUYAMA about 3 years ago

I cannot reproduce on 3.0.0.

#5 Updated by Toshi MARUYAMA about 3 years ago

Toshi MARUYAMA wrote:

I cannot reproduce on 3.0.0.

Works on Windows IE/Chrome/Firefox.

#6 Updated by Zer Guz about 3 years ago

Tried with 3.0.3 (default bitnami setup) - cannot reproduce the issue. Still it is happening with our production setup based on 3.0.1. I cannot yet confirm if it is because of the version difference or because of our production data. Will confirm when we switch our production setup to 3.0.3.

#7 Updated by Zer Guz about 3 years ago

Now I managed to reproduce the problem with 3.0.3 installed from the scratch (bitnami VM image with no previous data). It happens when you define a project with a custom set of activities (disable some activities).

This is what I did:
  • I set these activities in Administration -> Enumerations (in this order):
    • Design (Active=OFF)
    • Development (Active=ON)
  • Create a project and set in Project -> Settings -> Activities:
    • Design (Active=ON)
    • Development (Active=OFF)
  • Go back to Administration -> Enumerations.
  • Add activity "Testing". It will be added at the end of the list.
  • Move "Testing" one level up. Will not move. <- THIS IS THE PROBLEM
  • Go again to the previous Project -> Settings -> Activities. Note that ii shows the order (Design, Testing, Development). IT SEEMS THAT MOVING THE ACTIVITIES IN ADMINISTRATION AFFECTS INSTEAD THE ORDER IN THIS PROJECT.

So it looks like 3.0.3 is affected too.

#8 Updated by Toshi MARUYAMA about 3 years ago

  • Status changed from Needs feedback to New

#9 Updated by Toshi MARUYAMA about 3 years ago

  • Target version set to 3.1.0

#10 Updated by Toshi MARUYAMA about 3 years ago

  • Related to Defect #20117: Activities set as inactive missing in spent time report filter added

#11 Updated by Jean-Philippe Lang almost 3 years ago

  • Target version changed from 3.1.0 to 3.2.0

#12 Updated by Jean-Philippe Lang almost 3 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

This problem was indeed caused by overrides at projet level. It should be fixed in r14627.
If your positions are messed up (not sequential), this will be fixed after the first reodering.

#13 Updated by Jean-Philippe Lang almost 3 years ago

  • Subject changed from Can't move one level up the last activity item. to Can't reorder activities after disabling activities on a project

Also available in: Atom PDF