プロジェクト

全般

プロフィール

Vote #65902

完了

Cannot disable activity in project when activity is active on /enumerations page

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
-
対象バージョン:
開始日:
2009/10/22
期日:
進捗率:

100%

予定工数:
category_id:
0
version_id:
6
issue_org_id:
4084
author_id:
4
assigned_to_id:
5
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

journals

Please read [[SubmittingBugs]] and give steps to reproduce.
--------------------------------------------------------------------------------
After setting project specific activities like on projectSettingsActivities1.jpg (one is active). I expect to see only one option while logging time (projectSettingsActivities2.jpg).
I think it is confusing because to get expected behavior I have to disable all activities on Administration -> Enumerations page.
--------------------------------------------------------------------------------
I'll take a look at it.
--------------------------------------------------------------------------------
I am able to reproduce the issue.

h2. My environment:

<pre>
[mischa@server xxx]# svn info
Path: .
URL: http://redmine.rubyforge.org/svn/trunk
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 3171
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 3171
Last Changed Date: 2009-12-13 15:55:17 +0100 (Sun, 13 Dec 2009)

[mischa@server xxx]# svn status
? public/themes/squeejee

[mischa@server xxx]# ./script/about
About your application's environment
Ruby version 1.8.6 (i686-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.4
Active Record version 2.3.4
Active Resource version 2.3.4
Action Mailer version 2.3.4
Active Support version 2.3.4
Application root /xxx
Environment production
Database adapter mysql
Database schema version 20091205124427

[mischa@server xxx]# mysql --version
mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i686) using readline 4.3
</pre>

h2. Steps to reproduce (with screenshots):

# My activity-enumerations are set like:
!enumerations.jpg!
&nbsp;
# By default the random project's (here _child2-1_) activities settings look like:
!projectsettings_activities-1.jpg!
&nbsp;
# On the random project (here _child2-1_) I want to disable the @Development@-activity, thus I deselect the checkbox for that activity. *Before* I click "save" the screen looks like:
!projectsettings_activities-2_beforesave.jpg!
&nbsp;
# *After* I've clicked "save" the screen looks like below (notice the removed system activity tick):
!projectsettings_activities-2_aftersave.jpg!
If I now take a look at my global activity-enumerations they still are configured as in step 1's screenshot.
&nbsp;
# Although I have disabled the @Development@-activity in steps 3 and 4 I still see the activity in the spenttime-view's activities-dropdown:
!spenttime.jpg!
&nbsp;
# Also: when I now go back to the project's activities settings, re-activate the @Development@-activity and "save", I get the following config:
!projectsettings_activities-3_after-reactivation-and-save.jpg!
The only way to get the removed system activity tick back is to *reset* all the project's activities using the dedicated text-button.

h2. Feedback from the logs:

The logs which are written during steps 3 and 4 look like:

<pre>
Processing ProjectsController#settings (for 192.168.1.2 at 2009-12-14 07:08:31) [GET]
Parameters: {"action"=>"settings", "id"=>"child2-1", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/settings
Completed in 1293ms (View: 1214, DB: 47) | 200 OK [http://xxx/projects/child2-1/settings]

Processing ProjectsController#save_activities (for 192.168.1.2 at 2009-12-14 07:08:47) [POST]
Parameters: {"enumerations"=>{"8"=>{"parent_id"=>"8", "active"=>"1"}, "9"=>{"parent_id"=>"9", "active"=>"0"}}, "commit"=>"Save", "action"=>"save_activities", "authenticity_token"=>"RemovedForSecurityReasons", "id"=>"child2-1", "controller"=>"projects"}
Redirected to http://xxx/projects/child2-1/settings/activities
Completed in 78ms (DB: 35) | 302 Found [http://xxx/projects/child2-1/activities/save]

Processing ProjectsController#settings (for 192.168.1.2 at 2009-12-14 07:08:47) [GET]
Parameters: {"action"=>"settings", "id"=>"child2-1", "controller"=>"projects", "tab"=>"activities"}
Rendering template within layouts/base
Rendering projects/settings
Completed in 508ms (View: 443, DB: 42) | 200 OK [http://xxx/projects/child2-1/settings/activities]
</pre>

&nbsp;
Hope this is enough information to further debug this issue. If any more info in required to fix this issue, please let me know. I'm happy to provide further details where needed.

Regards, Mischa.
--------------------------------------------------------------------------------
Mischa The Evil wrote:
> # Although I have disabled the @Development@-activity in steps 3 and 4 I still see the activity in the spenttime-view's activities-dropdown:
> !spenttime.jpg!

That's a bug. I suspect it's mixing the system Development activity into the project one.

> The only way to get the removed system activity tick back is to *reset* all the project's activities using the dedicated text-button.

That's the correct behavior.

Thanks Mischa, that helps pinpoint the issue. I'll try to have it fixed for 0.9.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fixed in r3239. The project was checking for only active project level activities that overrode the system activities. In Mischa's example, this meant that the Project didn't see the project level "Development" so it used the system one.
--------------------------------------------------------------------------------


related_issues

relates,Closed,4077,Custom fields and overrides on Enumerations

Admin Redmine さんが3年以上前に更新

  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0