Project

General

Profile

Actions

Patch #6848

closed

Error at attaching afile.

Added by Masanori Kado about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-11-08
Due date:
% Done:

0%

Estimated time:

Description

Index: app/models/user.rb ===================================================================
--- app/models/user.rb (Revision 4388)
+++ app/models/user.rb (Working Copy)
@ -396,7 +396,7 @ # # TODO: only supports Issue events currently
def notify_about?(object)
- case mail_notification.to_sym
+ case mail_notification.to_s.to_sym
when :all
true
when :selected


Related issues

Has duplicate Redmine - Defect #6994: Error after saving a issueClosed2010-11-28

Actions
Actions #1

Updated by Masanori Kado about 14 years ago

here is log:

app/models/user.rb:399:in `notify_about?'
app/models/issue.rb:422:in `recipients'
app/models/mailer.rb:68:in `issue_edit'
app/models/journal_observer.rb:24:in `after_create'
/usr/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/usr/lib/ruby/1.8/observer.rb:184:in `each'
/usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'
app/models/journal.rb:43:in `save'
app/models/issue.rb:832:in `create_journal'
app/models/issue.rb:538:in `save_issue_with_child_records'
app/models/issue.rb:520:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:172:in `update'
Actions #2

Updated by Masanori Kado about 14 years ago

sorry, forgot 1st line:

NoMethodError (undefined method `to_sym' for false:FalseClass):
Actions #3

Updated by Jean-Philippe Lang about 14 years ago

I think you forgot to migrate your database.
User#mail_notification was a boolean, it's a string now. See r4216.

Actions #4

Updated by Masanori Kado about 14 years ago

  • Status changed from New to Resolved

oh, it was my mistake. thanks.

Actions #5

Updated by Jean-Philippe Lang about 14 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF