From 32f90f57787fd8f7b01b49a916392f7576ead3b0 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 15 Jun 2018 14:10:36 +0800 Subject: [PATCH] * Finish task #4467. --- db/update9.8.3.sql | 2 ++ module/block/control.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/db/update9.8.3.sql b/db/update9.8.3.sql index bf3057b7ea..77a9fb8699 100644 --- a/db/update9.8.3.sql +++ b/db/update9.8.3.sql @@ -2,3 +2,5 @@ ALTER TABLE `zt_release` ADD `marker` enum('0','1') NOT NULL default '0' AFTER ` ALTER TABLE `zt_doc` ADD `collector` text NOT NULL AFTER `views`; ALTER TABLE `zt_doclib` ADD `collector` text NOT NULL AFTER `main`; ALTER TABLE `zt_module` ADD `collector` text NOT NULL AFTER `owner`; + +UPDATE `zt_block` SET `grid` = 8 WHERE `source` in ('product', 'project', 'qa') OR `block` in ('flowchart', 'assigntome'); diff --git a/module/block/control.php b/module/block/control.php index ed792d5217..207d841002 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1009,8 +1009,12 @@ class block extends control { foreach($productBuilds as $buildID => $build) { + /* If don't clone $build, the exploded bugs of build will be stored in dao::$cache and it occurs an error when the qa statistic block be loaded twice. */ + $build = clone $build; $build->bugs = explode(',', trim($build->bugs, ',')); foreach($build->bugs as $bugID) $bugIDList[$bugID] = $bugID; + + $builds[$product][$buildID] = $build; } } foreach($openedBugs as $buildBugs)