Project

General

Profile

Actions

Defect #19906

closed

Custom field with permission to roles can't updated

Added by Adriano Ceccarelli over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,

Don't was executed test this case because requer login administrator.

I created a custom field of the type long text with text formatting enabled and defined permission to roles only chosen.

The problema is >> The user with permisson can't update a issue with values this field. Result Internal Error

Thanks!
---

Viewlog

Processing by TimeTrackersController#render_menu as */*
  Parameters: {"issue_id"=>"57684", "amp"=>nil, "project_id"=>"1"}
  Current user: rodrigo.oliveira (id=179)
  Rendered plugins/redmine_time_tracker/app/views/time_trackers/_embed_menu.html.erb (9.6ms)
Completed 200 OK in 14.3ms (Views: 9.6ms | ActiveRecord: 0.9ms)
Completed 500 Internal Server Error in 458.6ms

NoMethodError (undefined method `admin?' for nil:NilClass):
  app/models/custom_field.rb:61:in `visible_by?'
  app/models/issue_custom_field.rb:28:in `visible_by?'
  app/models/journal.rb:61:in `block in visible_details'
  app/models/journal.rb:59:in `visible_details'
  app/models/mailer.rb:423:in `initialize'
  app/models/mailer.rb:446:in `method_missing'
  app/models/mailer.rb:86:in `block (2 levels) in deliver_issue_edit'
  app/models/issue.rb:829:in `block in each_notification'
  app/models/issue.rb:828:in `each'
  app/models/issue.rb:828:in `each_notification'
  app/models/mailer.rb:85:in `block in deliver_issue_edit'
  app/models/journal.rb:77:in `block in each_notification'
  app/models/journal.rb:75:in `each'
  app/models/journal.rb:75:in `each_notification'
  app/models/mailer.rb:84:in `deliver_issue_edit'
  app/models/journal.rb:196:in `send_notification'
  app/models/journal.rb:54:in `save'
  app/models/issue.rb:1546:in `create_journal'
  app/models/issue.rb:165:in `create_or_update'
  app/controllers/issues_controller.rb:478:in `block in save_issue_with_child_records'
  app/controllers/issues_controller.rb:466:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:188:in `update'
Environment:
  Redmine version                2.6.1.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.17
  Git                            1.7.10.4
  Filesystem                     
Redmine plugins:
  parent_issue_filter            1.0.1
  redmine_auto_percent           0.0.1
  redmine_custom_reports         0.1.4
  redmine_daily_scrum            0.0.1
  redmine_display_updates_time   0.1.20x
  redmine_documents              1.0.0
  redmine_drafts                 0.2.0
  redmine_impasse                1.2.2
  redmine_importer               1.2.2
  redmine_issue_history_tabs     0.0.3
  redmine_issue_templates        0.0.9
  redmine_issue_templates_notes  2.0.0
  redmine_issue_wiki_journal     0.9.0
  redmine_percent_done_configuration 0.1.23x
  redmine_questions              0.0.5
  redmine_send_mails             0.3.23xBeta
  redmine_spent_time             2.6.6
  redmine_tags                   2.1.0
  redmine_time_tracker           0.4
  redmine_wiki_extensions        0.6.5
  redmine_wiki_templates         0.1.1
  redmine_workload               0.0.1
  sidebar_hide                   0.0.7
Actions #1

Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

The error stack trace show that this error is triggered by the redmine_time_tracker plugin, please report it to its author.
We're tracking Redmine core issues only here in this issue tracker.

Actions

Also available in: Atom PDF