app/controllers/fiona7/release_controller.rb in infopark_fiona7-0.71.1.8 vs app/controllers/fiona7/release_controller.rb in infopark_fiona7-0.71.1.9

- old
+ new

@@ -71,9 +71,27 @@ if destination_object && (destination_object.image? || destination_object.generic?) referenced << link.destination_object end end end + elsif attribute.type == :link || attribute.type == :linklist + (obj[attribute.real_name] || []).each do |link| + if link.internal? + destination_object = link.destination_object + if destination_object && (destination_object.image? || destination_object.generic?) + referenced << link.destination_object + end + end + end + end + end + + obj.text_links.each do |link| + if link.internal? + destination_object = link.destination_object + if destination_object && (destination_object.image? || destination_object.generic?) + referenced << link.destination_object + end end end referenced end