Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Tracker GUI takes params from tracker_param
Browse files Browse the repository at this point in the history
Conflicts:
	modules/tracker/views/scalar/details.phtml
  • Loading branch information
mgrauer committed Oct 5, 2015
1 parent 4f83b1f commit 8a9fe14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/tracker/controllers/ScalarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function detailsAction()

$this->view->isAdmin = $this->Tracker_Scalar->policyCheck($scalarDao, $this->userSession->Dao, MIDAS_POLICY_ADMIN);
$this->view->scalar = $scalarDao;
$this->view->extraParams = json_decode($scalarDao->getParams(), true);
$this->view->extraParams = $scalarDao->getParams();
$this->view->extraUrls = json_decode($scalarDao->getExtraUrls(), true);

$revisionUrl = $scalarDao->getTrend()->getProducer()->getRevisionUrl();
Expand Down
4 changes: 2 additions & 2 deletions modules/tracker/views/scalar/details.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ if (count($this->extraParams)) {
<tbody>
<?php
/** @var Tracker_ParamDao $param */
foreach ($this->extraParams as $key => $value) {
echo '<tr><th>'.$this->escape($key).':</th><td>'.$this->escape($value).'</td></tr>';
foreach ($this->extraParams as $param) {
echo '<tr><th>'.$this->escape($param->getParamName()).':</th><td>'.$this->escape($param->getParamValue()).'</td></tr>';
}
?>
</tbody>
Expand Down

0 comments on commit 8a9fe14

Please sign in to comment.