fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11306] property: convert p_num to integer


From: Sigurd Nes
Subject: [Fmsystem-commits] [11306] property: convert p_num to integer
Date: Thu, 19 Sep 2013 13:30:51 +0000

Revision: 11306
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11306
Author:   sigurdne
Date:     2013-09-19 13:30:46 +0000 (Thu, 19 Sep 2013)
Log Message:
-----------
property: convert p_num to integer

Modified Paths:
--------------
    trunk/catch/inc/custom/default/update_location_at_record.php

Modified: trunk/catch/inc/custom/default/update_location_at_record.php
===================================================================
--- trunk/catch/inc/custom/default/update_location_at_record.php        
2013-09-19 07:54:38 UTC (rev 11305)
+++ trunk/catch/inc/custom/default/update_location_at_record.php        
2013-09-19 13:30:46 UTC (rev 11306)
@@ -45,12 +45,13 @@
                                $p_cat_id = $origin_arr[3];
                                if($origin_table)
                                {
-                                       $this->db2->query("SELECT 
location_code, address FROM {$origin_table} WHERE num = 
'{$target_id}'",__LINE__,__FILE__);
+                                       $this->db2->query("SELECT 
location_code, address, id AS target_id FROM {$origin_table} WHERE num = 
'{$target_id}'",__LINE__,__FILE__);
                                        $this->db2->next_record();
                                        $origin_location_code           = 
$this->db2->f('location_code');
                                        $origin_address                         
= $this->db2->f('address');
                                        $value_set['location_code'] = 
$origin_location_code;
-                                       $value_set['p_num']             = 
$target_id;
+                               //      $value_set['p_num']             = 
$target_id;
+                                       $value_set['p_num']             = 
$this->db2->f('target_id');
                                        $value_set['p_entity_id']       = 
$p_entity_id;
                                        $value_set['p_cat_id']          = 
$p_cat_id;
                                        $origin_location_code_arr       = 
explode('-',$origin_location_code);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]