|
|
@@ -3867,11 +3867,17 @@ class BiAuditPowiazania {
|
|
|
|
|
|
if ($resultsPart === null) {
|
|
|
$results = $this->results;
|
|
|
+ $parts = 0;
|
|
|
} else {
|
|
|
$results = (!empty($this->splittedResults[$resultsPart])) ? $this->splittedResults[$resultsPart] : [];
|
|
|
+ $parts = count($this->splittedResults);
|
|
|
$this->items_results[$resultsPart][$xmlTask]['@attributes']['system_cache__dita:part'] = ($resultsPart + 1);
|
|
|
}
|
|
|
|
|
|
+ for ($i = 1; $i <= $parts; $i++) {
|
|
|
+ if ($i != $resultsPart + 1) $this->items_results[$resultsPart][$xmlTask]['system_cache__dita:parts'][] = ['@attributes' => ['system_cache__dita:part' => $i]];
|
|
|
+ }
|
|
|
+
|
|
|
foreach ($results as $key => $result) {
|
|
|
if ($this->fidRow) $item_results = ['@attributes' => ['fid' => "{$xmlRow}.{$this->fidRow[$key]['fid']}"]];
|
|
|
foreach ($result as $ID => $rel) {
|
|
|
@@ -3906,7 +3912,7 @@ class BiAuditPowiazania {
|
|
|
foreach ($adresy as $adres) {
|
|
|
$item_result[$row['REMOTE_TABLE']]['BI_audit_ENERGA_PRACOWNICY_adresy'][] = array_merge(['@attributes' => ['fid' => "BI_audit_ENERGA_PRACOWNICY_adresy.{$adres['ID']}"]], $adres);
|
|
|
}
|
|
|
- } elseif ($row['REMOTE_TABLE'] == 'TERYT_adresy']) {
|
|
|
+ } elseif ($row['REMOTE_TABLE'] == 'TERYT_adresy') {
|
|
|
try {
|
|
|
$teryt = Teryt::getNames(['SYM' => $row['TERYT_SYM'], 'SYM_UL' => $row['TERYT_SYM_UL']]);
|
|
|
$item_result[$row['REMOTE_TABLE']]['TERYT_names'] = $teryt;
|