diff --git a/module/block/control.php b/module/block/control.php index 16cd14f38d..342e16c469 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1585,7 +1585,11 @@ class block extends control */ public function printScrumoverallBlock() { - $this->view->program = $this->loadModel('project')->getByID($this->session->program); + $programID = $this->session->program; + $totalData = $this->loadModel('program')->getUserPrograms('all','id_desc',15,$programID); + + $this->view->totalData = $totalData; + $this->view->programID = $programID; } /** @@ -1688,7 +1692,6 @@ ksort($products); */ public function printScrumdynamicBlock() { - /* Load pager. */ $this->app->loadClass('pager', $static = true); $pager = new pager(0, 30, 1); diff --git a/module/block/view/scrumoverallblock.html.php b/module/block/view/scrumoverallblock.html.php index e69de29bb2..8520ddf326 100644 --- a/module/block/view/scrumoverallblock.html.php +++ b/module/block/view/scrumoverallblock.html.php @@ -0,0 +1,60 @@ + + * @package block + * @version $Id$ + * @link http://www.zentao.net + */ +?> + +