NoMethodError (undefined method `gfm_reference' for nil:NilClass) on posting on project wall
Created by: czimnick
if i post a message to the wall that contains the magic words "fixed/closed #xx" then i get a 500 Internal error in ajax request (browser dev console).
Server: Ubuntu 12.04.3 LTS precise
gitlab version: 6.1
Here the log entry with stacktrace:
Started POST "/GROUP/PROJECT/notes" for 127.0.0.1 at 2013-09-26 13:29:15 +0200
Processing by Projects::NotesController#create as JS
Parameters: {"utf8"=>"â", "authenticity_token"=>"TOKEN", "target_type"=>"wall", "target_id"=>"", "note"=>{"note"=>"you can now commit with message like: closed #30\r\nthan the issue will be closed automaticly.\r\n"}, "commit"=>"Add Comment", "project_id"=>"XXXXXXXXXXXXXX"}
Completed 500 Internal Server Error in 39ms
NoMethodError (undefined method `gfm_reference' for nil:NilClass):
app/models/note.rb:78:in `create_cross_reference_note'
app/observers/note_observer.rb:9:in `block in after_create'
app/observers/note_observer.rb:8:in `each'
app/observers/note_observer.rb:8:in `after_create'
app/contexts/notes/create_context.rb:6:in `execute'
app/controllers/projects/notes_controller.rb:21:in `create'