diff options
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/ReportProject.php')
-rw-r--r-- | demos/time-tracker/protected/pages/TimeTracker/ReportProject.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php b/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php index fea372be..fcb1c865 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php +++ b/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php @@ -22,11 +22,17 @@ class ReportProject extends TPage public function generateReport_Clicked($sender, $param)
{
+ if(count($this->projectList->SelectedValues) > 0)
+ $this->showReport();
+ }
+
+ protected function showReport()
+ {
$reportDao = $this->Application->Modules['daos']->getDao('ReportDao');
$reports = $reportDao->getTimeReportsByProjectIDs($this->projectList->SelectedValues);
$this->views->ActiveViewIndex = 1;
$this->projects->DataSource = $reports;
- $this->projects->dataBind();
+ $this->projects->dataBind();
}
public function project_itemCreated($sender, $param)
|