<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -169,10 +169,12 @@ module UploadColumn
     
     # this is the value returned when avatar_temp is called, where avatar is an upload_column 
     def temp_value #:nodoc:
-      if original_filename
-        %(#{@temp_name}/#{filename};#{original_filename})
-      else
-        %(#{@temp_name}/#{filename})
+      if tempfile?
+        if original_filename
+          %(#{@temp_name}/#{filename};#{original_filename})
+        else
+          %(#{@temp_name}/#{filename})
+        end
       end
     end
     </diff>
      <filename>lib/upload_column/uploaded_file.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1039,4 +1039,15 @@ describe &quot;the temp_value of a retrieved temporary UploadedFile&quot; do
   it &quot;should be mainatained&quot; do
     @file.temp_value.should == '12345.1234.12345/kerb.jpg'
   end
+end
+
+describe &quot;the temp_value of an UploadedFile that is not temporary&quot; do
+  
+  setup do
+    @file = UploadColumn::UploadedFile.retrieve('kerb.jpg', nil, :donkey)
+  end
+  
+  it &quot;should be mainatained&quot; do
+    @file.temp_value.should be_nil
+  end
 end
\ No newline at end of file</diff>
      <filename>spec/uploaded_file_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cbb621379a5e198cc2863449a21750989cd74e78</id>
    </parent>
  </parents>
  <author>
    <name>Jonas Nicklas</name>
    <email>jonas.nicklas@gmail.com</email>
  </author>
  <url>http://github.com/jnicklas/uploadcolumn/commit/63d2657bc37d74b715acf126d46dbfb0f8671c34</url>
  <id>63d2657bc37d74b715acf126d46dbfb0f8671c34</id>
  <committed-date>2008-04-09T11:16:18-07:00</committed-date>
  <authored-date>2008-04-09T11:16:18-07:00</authored-date>
  <message>fixed problem with multiple edits

git-svn-id: http://uploadcolumn.rubyforge.org/svn/trunk@109 02338ee4-8dee-4235-8d26-5b68cf25713b</message>
  <tree>2ec8a8dc2c6719665f73b742fa1cb7cef7f99b39</tree>
  <committer>
    <name>Jonas Nicklas</name>
    <email>jonas.nicklas@gmail.com</email>
  </committer>
</commit>
