Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX: ensure @image_ids is not null even if not passed an empty par…

…ams array
  • Loading branch information...
commit 24b40868cf0d291b22330d2ca8b9cef374301617 1 parent 8fc65ec
@robyurkowski robyurkowski authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/models/refinery/portfolio/gallery.rb
View
1  app/models/refinery/portfolio/gallery.rb
@@ -33,6 +33,7 @@ def images=(ids = [])
def bulk_update_associated_items
+ @image_ids ||= []
existing_images = ::Refinery::Portfolio::Item.select('id').where(:gallery_id => id)
existing_ids = existing_images.collect(&:id)
@image_ids.each_with_index do |image_id, position|
Please sign in to comment.
Something went wrong with that request. Please try again.