tbrehm
2011-08-29 e615265d3b51e27f0f664cea193b6353975d6f7d
interface/lib/classes/remoting.inc.php
@@ -2132,23 +2132,28 @@
      
      //* Get the SQL query
      $sql = $app->remoting_lib->getSQL($params,'INSERT',0);
      $app->db->query($sql);
      if($app->remoting_lib->errorMessage != '') {
         $this->server->fault('data_processing_error', $app->remoting_lib->errorMessage);
         return false;
      }
      
      $app->db->query($sql);
      $insert_id = $app->db->insertID();
      $this->id = $insert_id;
      $this->dataRecord = $params;
      
      $app->plugin->raiseEvent('client:client:on_after_insert',$this);
      
      /*
      if($app->db->errorMessage != '') {
         $this->server->fault('database_error', $app->db->errorMessage . ' '.$sql);
         return false;
      }
      */
      
      $insert_id = $app->db->insertID();
      //$app->uses('tform');
      //* Save changes to Datalog
      if($app->remoting_lib->formDef["db_history"] == 'yes') {