|
|
@@ -288,7 +288,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time) {
|
|
|
$hist_time[][$T]=$h;
|
|
|
// print_r($hist_loop);
|
|
|
|
|
|
- dig_next($hist_loop, $tables['Z'][$T],$h,$loop);
|
|
|
+ dig_next($hist_loop, $tables['Z'][$T],$h,$loop,$hist_time);
|
|
|
//rel dzieci
|
|
|
foreach($tables[$T]['ref'] as $ref_id => $ref_table) {
|
|
|
$sql_ref=" select REMOTE_PRIMARY_KEY from `CRM__#REF_TABLE__".$ref_id."` where `PRIMARY_KEY`=".$h->ID." ";
|