forked from saurabh/orbit4-5
import modified
This commit is contained in:
parent
b11299a667
commit
adbbd044ef
|
@ -72,7 +72,7 @@ class Admin::ImportController < OrbitAdminController
|
|||
categories[id]['id'] = old_cate.id.to_s
|
||||
end
|
||||
end
|
||||
render :json=>categories
|
||||
render :json=>categories.to_json
|
||||
end
|
||||
|
||||
def module_data_list
|
||||
|
@ -82,7 +82,7 @@ class Admin::ImportController < OrbitAdminController
|
|||
response = http.request(request)
|
||||
data = response.body
|
||||
data = JSON.parse(data)
|
||||
render :json=>data
|
||||
render :json=>data.to_json
|
||||
end
|
||||
|
||||
def module_data
|
||||
|
@ -99,7 +99,7 @@ class Admin::ImportController < OrbitAdminController
|
|||
when 'announcement'
|
||||
import_announcement(data)
|
||||
end
|
||||
render :json=>['status'=>'ok']
|
||||
render :json=>['status'=>'ok'].to_json
|
||||
end
|
||||
|
||||
def import_archive(file)
|
||||
|
|
Loading…
Reference in New Issue