Explorar el Código

add orders list file

abiao hace 4 años
padre
commit
210aed41dc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/models/order.rb

+ 1 - 1
app/models/order.rb

@@ -250,7 +250,7 @@ class Order < ActiveRecord::Base
                 read_only true
                 pretty_value do
                     v = bindings[:view]
-                    url = v
+                    url = value
                     # value will point to bindings[:object].name
                     if value.length>0
                         v.link_to("文件", url, target: '_blank', rel: 'noopener noreferrer')