Commit 6670b379 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette

Init Item's metadata as empty hash

parent e81843f2
......@@ -22,7 +22,7 @@ module Dspace
@archived = args['archived']
@withdrawn = args['withdrawn']
@expand = args['expand']
@metadata = Dspace::Builders::ModelBuilder.build_metadatas(args['metadata'])
@metadata = Dspace::Builders::ModelBuilder.build_metadatas(args['metadata']) || []
end
def to_h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment