Support #125

get rid of Activity dropdown

Added by M o u s e over 2 years ago. Updated over 1 year ago.

Status:Closed Start:09/24/2009
Priority:Normal Due date:
Assignee:Brenda Butler % Done:

100%

Category:- Spent time: 5.50 hours
Target version:-
    Velocity: 0.00 beans per hour

Description

At least for thomas-watson, we'd like to get rid of the Activity dropdown - the one that selects from Design or Development - when adding time (or comments?) to an issue; it's serving for nothng but annoying us and occasionally breaking an update attempt.

History

Updated by Brenda Butler over 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Brenda Butler
  • % Done changed from 0 to 10

Discovered that activity is not a database item ... and it is implemented with a plugin "acts_as_activity_provider". I'd like to just set the value from the form and make that entry field invisible, but I'm not sure how to "look up" a value to set it to.
activity_id is marked as required for time_entry, so probably the impact of leaving it "nil" is not an option.

While searching for the string "design" in the redmine directory, discovered that searches in the sessions directory get lost in a tar-pit ... that directory is huge. Opening another ticket for looking into that ...

Updated by Brenda Butler over 2 years ago

It was as simple as clicking "default" in the Settings/Enumerations/Development page.

Updated by Brenda Butler over 2 years ago

  • Status changed from Assigned to Closed

Updated by Brenda Butler over 2 years ago

  • % Done changed from 10 to 100

Updated by Brenda Butler over 2 years ago

I had made the change in code:
redmine/lib/redmine/default_data/loader.rb:
Enumeration.create!(:opt => "ACTI", :name => l(:default_activity_design), :position => 1)
Enumeration.create!(:opt => "ACTI", :name => l(:default_activity_development), :position => 2, :is_default => true)

(add :is_default to development)

but it didn't propagate to the database just by running ruby ... and I didn't think about it having to propagate to the database so kept looking for ways to make it stick :-(

It turned out there was an admin page for that anyway.

Updated by Brenda Butler over 2 years ago

I'm not sure if I should "make it permanent" by editing the lib/redmine/default_data/loader.rb file. When I had done that, it was on my development copy of redmine. It has not been done in the production copy.

Also available in: Atom PDF