Page MenuHomePhabricator

D18066.diff
No OneTemporary

D18066.diff

diff --git a/src/applications/diffusion/view/DiffusionHistoryListView.php b/src/applications/diffusion/view/DiffusionHistoryListView.php
--- a/src/applications/diffusion/view/DiffusionHistoryListView.php
+++ b/src/applications/diffusion/view/DiffusionHistoryListView.php
@@ -26,19 +26,12 @@
$rows = array();
$ii = 0;
$cur_date = 0;
- $list = null;
$header = null;
$view = array();
foreach ($this->getHistory() as $history) {
$epoch = $history->getEpoch();
$new_date = date('Ymd', $history->getEpoch());
if ($cur_date != $new_date) {
- if ($list) {
- $view[] = id(new PHUIObjectBoxView())
- ->setHeader($header)
- ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
- ->setObjectList($list);
- }
$date = ucfirst(
phabricator_relative_date($history->getEpoch(), $viewer));
$header = id(new PHUIHeaderView())
@@ -46,6 +39,11 @@
$list = id(new PHUIObjectItemListView())
->setFlush(true)
->addClass('diffusion-history-list');
+
+ $view[] = id(new PHUIObjectBoxView())
+ ->setHeader($header)
+ ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
+ ->setObjectList($list);
}
if ($epoch) {

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 21, 6:36 AM (1 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223263
Default Alt Text
D18066.diff (1 KB)

Event Timeline