#11496 fix dashboard custom report redirection
This commit is contained in:
parent
e9246e4a1d
commit
7e8585dabe
|
@ -411,7 +411,16 @@ class ReportsWidget extends Widget
|
||||||
$this->printReport();
|
$this->printReport();
|
||||||
$output .= ob_get_clean();
|
$output .= ob_get_clean();
|
||||||
|
|
||||||
$output .= 'Click to view: <a href="?sec=reporting&sec2=operation/reporting/reporting_viewer&id='.$this->values['reportId'].'">'.__('Report').'</a>';
|
if ($this->values['node'] === '-1') {
|
||||||
|
$output .= 'Click to view: <a href="?sec=reporting&sec2=operation/reporting/reporting_viewer&id='.$this->values['reportId'].'">'.__('Report').'</a>';
|
||||||
|
} else {
|
||||||
|
\enterprise_hook('metaconsole_restore_db');
|
||||||
|
$node = $this->values['node'];
|
||||||
|
$serverurl = db_get_value('server_url', 'tmetaconsole_setup', 'id', $node);
|
||||||
|
$url = $serverurl.'index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id='.$this->values['reportId'];
|
||||||
|
$output .= 'Click to view: <a href="'.$url.'">'.__('Report').'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
$output .= '</div>';
|
$output .= '</div>';
|
||||||
} else {
|
} else {
|
||||||
$this->loadError = true;
|
$this->loadError = true;
|
||||||
|
|
Loading…
Reference in New Issue