<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>log/README.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@
 
 == densha - 0.9.18    not yet released
 
+- patch #19759 : &quot;last_modified_by&quot; patch by Arjan
 - patch #19684 : patch for custom forms (partials) determined by [participant]
                  activity (by Arjan van Bentem)
 - todo  #19747 : implement 'pick workitem' as suggested by Arjan van Bentem</diff>
      <filename>CHANGELOG.txt</filename>
    </modified>
    <modified>
      <diff>@@ -138,6 +138,7 @@ class WorkitemController &lt; ApplicationController
     # overwrite with preserved fields
 
     fields.merge! preserved_fields
+    fields['last_modified_by'] = user.name
 
     workitem.touch # setting last_modified to now
     workitem.replace_fields fields # calls workitem.save!</diff>
      <filename>app/controllers/workitem_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -119,11 +119,13 @@ module WorkitemHelper
   #
   def find_partial (key, default)
 
-    t_name = @workitem.fields_hash[key]
+    wi_fields = @workitem.fields_hash
+
+    t_name = wi_fields[key]
 
     if (t_name == nil) and (key == '__workitem_partial')
 
-      activity = @workitem.params['activity']
+      activity = wi_fields['params']['activity']
       t_name = activity.downcase.gsub(/[^a-z0-9]/, '_') if activity
     end
       #</diff>
      <filename>app/helpers/workitem_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>90d8c97054c18318050cd8fbf25047f1b75752f7</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/ruote-web/commit/1c6b31fdb1ff24d181ab3724401ff79fe2e6ec19</url>
  <id>1c6b31fdb1ff24d181ab3724401ff79fe2e6ec19</id>
  <committed-date>2008-04-24T17:16:42-07:00</committed-date>
  <authored-date>2008-04-24T17:16:42-07:00</authored-date>
  <message>patch #19759 : &quot;last_modified_by&quot; patch by Arjan</message>
  <tree>98f78d234f9eac053c79c1df7841e31c8810f87f</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
