Merge pull request #3479 from artoscinote/ma_SCI_5996

Fixed for assets that belong to protocol step [SCI-5996]
This commit is contained in:
artoscinote 2021-08-12 13:56:10 +02:00 committed by GitHub
commit f818649fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ class BioEddieAssetsController < ApplicationController
activity_type: :register_molecule,
owner: current_user,
team: asset.team,
project: asset.my_module.experiment.project,
project: asset&.my_module&.experiment&.project,
subject: asset,
message_items: {
description: asset.blob.metadata['description'],