@@ 472-476 (lines=5) @@ | ||
469 | foreach ($dbTableFieldsIds as $field) { |
|
470 | /** Add table columns names */ |
|
471 | $tableColumns[] = $field->Name; |
|
472 | if ($field->local == 1) { |
|
473 | $localizedFields[] = $field->id; |
|
474 | } else { |
|
475 | $unlocalizedFields[] = $field->id; |
|
476 | } |
|
477 | } |
|
478 | ||
479 | // Get table row materials |
|
@@ 564-568 (lines=5) @@ | ||
561 | foreach (dbQuery('field')->order_by('priority')->cond('FieldID', $dbTableFieldsIds)->exec() as $field) { |
|
562 | /** Add table columns names */ |
|
563 | $tableColumns[] = $field->Name; |
|
564 | if ($field->local == 1) { |
|
565 | $localizedFields[] = $field->id; |
|
566 | } else { |
|
567 | $unlocalizedFields[] = $field->id; |
|
568 | } |
|
569 | } |
|
570 | ||
571 | // Query to get table rows(table materials) |