Page MenuHomePhabricator

D12784.id30732.diff
No OneTemporary

D12784.id30732.diff

diff --git a/src/view/control/AphrontTableView.php b/src/view/control/AphrontTableView.php
--- a/src/view/control/AphrontTableView.php
+++ b/src/view/control/AphrontTableView.php
@@ -124,6 +124,7 @@
$visibility = array_values($this->columnVisibility);
$device_visibility = array_values($this->deviceVisibility);
+
$headers = $this->headers;
$short_headers = $this->shortHeaders;
$sort_values = $this->sortValues;
@@ -235,12 +236,16 @@
if ($data) {
$row_num = 0;
foreach ($data as $row) {
+ $row_size = count($row);
while (count($row) > count($col_classes)) {
$col_classes[] = null;
}
while (count($row) > count($visibility)) {
$visibility[] = true;
}
+ while (count($row) > count($device_visibility)) {
+ $device_visibility[] = true;
+ }
$tr = array();
// NOTE: Use of a separate column counter is to allow this to work
// correctly if the row data has string or non-sequential keys.

File Metadata

Mime Type
text/plain
Expires
Tue, May 14, 8:20 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288047
Default Alt Text
D12784.id30732.diff (1 KB)

Event Timeline