CottageLabs / willow-hyrax

Willow on Hyrax
0 stars 0 forks source link

Error on clicking submit in dataset #10

Closed anusharanganathan closed 7 years ago

anusharanganathan commented 7 years ago

Go add 'create new work - dataset' or edit an existing dataset Fill in the required form values Upload a file Click on save

The following error message is displayed on the page, on form submit

undefined method `id' for #

def objectUuid
    @object.id
 end
lib/hyrax/notifications/subscribers/build_message.rb:93:in `objectUuid'
lib/hyrax/notifications/subscribers/build_message.rb:31:in `to_message'
lib/hyrax/notifications/subscribers/log.rb:7:in `notify'
lib/hyrax/notifications/subscribers/subscriber.rb:14:in `block (2 levels) in subscribe'
app/controllers/concerns/hyrax/notifications/notifiers.rb:8:in `after_create_response'

This error does not occur on dataset edit

anusharanganathan commented 7 years ago

Fixed. commit https://github.com/CottageLabs/willow/commit/d3d29f551b053f8d3be5effa6b38ccdf8995794a