Explorar o código

add orders list file

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
adca01c89b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/rails_admin/export_order_view.rb

+ 1 - 1
lib/rails_admin/export_order_view.rb

@@ -22,7 +22,7 @@ module RailsAdmin
                 register_instance_option :controller do
                     Proc.new do
                         require 'rest-client'
-                        list_file = ListFile.where("id = ? ",@object.id,0).first
+                        list_file = ListFile.where("id = ? ",@object.id).first
                         n = "生成成功"
                         if not list_file.blank?
                             n = "已成功生成清单"