Skip to content

Commit

Permalink
Merge pull request #18 from klees/4_4_reporting
Browse files Browse the repository at this point in the history
Patch for Bug in Reportcreation.
  • Loading branch information
dkloepfer committed Oct 30, 2015
2 parents 42d36e6 + 56bee3c commit a4b870a
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ protected function afterConstructor() {
$this->gAccess = $ilAccess;
$this->gTabs = $ilTabs;

$this->setFilterAction();
// TODO: this is crapy. The root cause of this problem is, that the
// filter should no need to know about it's action. The _rendering_
// of the filter needs to know about the action.
if ($this->object !== null) {
$this->setFilterAction();
}

$this->order = null;
$this->title = null;
Expand Down Expand Up @@ -68,7 +73,7 @@ final public function performCommand() {
return $this->renderReport();
break;
default:
return $this->renderReport();
throw new ilException("Unknown Command '$cmd'.");
}
}

Expand Down

0 comments on commit a4b870a

Please sign in to comment.