title: SugarCRM - very SIMPLE Logic Hook executed with delay
body: <p>i have very, very simple logic hook- I am still learning and I am confused at the start.
  I turn on Developer mode.</p>
  
  <p>I already have field "FIRST_NAME" in Contacts module.
  I Created my field "MY_FIELD" also in COntacts module.</p>
  
  <p>In logic_hooks.php file I added</p>
  
  <pre><code>$hook_array['before_save'] = Array();
  $hook_array['before_save'][] = Array(1, 'Value from one field to another', 'custom/modules/Contacts/my.php', 'User_hook','copy'); 
  </code></pre>
  
  <p>In my.php file I added </p>
  
  <pre><code>class User_hook {
  
      function copy(&amp;$bean, $event, $arguments)
      {
  
      $bean-&gt;my_field_c  = $bean-&gt;fetched_row['first_name']. " - additional text";
      }
  
  }
  </code></pre>
  
  <p>So when I entered in First_Name value "First" I am getting in My field value "-additional text" but I should get "First- additional text."
  If I go to Edit View and enter in First name field "Second" I am getting in My field value "First - additional text" but I should get "Second - additional text".
  If I enetein Edit View "Third" I am getting in My field "Third - addiitional text" but I should get "Third - additional text".</p>
  
  <p>So obviously my logic hook is executed with delay in one iteration- why and how to change it? This is my first hook so I am not so experience. Thanks for help</p>