forked from saurabh/orbit4-5
fixed reimport bug
This commit is contained in:
parent
97d4a94583
commit
1f1c040fe9
|
@ -624,6 +624,7 @@ class Admin::ImportController < OrbitAdminController
|
||||||
if AlbumImage.where(:rss2_id => params["photoid"]).count == 0
|
if AlbumImage.where(:rss2_id => params["photoid"]).count == 0
|
||||||
img = album.album_images.new
|
img = album.album_images.new
|
||||||
img.description_translations = params["description"]
|
img.description_translations = params["description"]
|
||||||
|
img.rss2_id = params["photoid"]
|
||||||
img.remote_file_url = params["url"]
|
img.remote_file_url = params["url"]
|
||||||
img.save
|
img.save
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue