Use Url::getRelativeUrl() when updating dashlets

fixes #8363
This commit is contained in:
Eric Lippmann 2015-04-07 13:05:12 +02:00
parent e32eeb991e
commit cdd5da80f0
2 changed files with 6 additions and 6 deletions

View File

@ -148,9 +148,9 @@ class DashletForm extends Form
$this->populate(array( $this->populate(array(
'pane' => $dashlet->getPane()->getName(), 'pane' => $dashlet->getPane()->getName(),
'org_pane' => $dashlet->getPane()->getName(), 'org_pane' => $dashlet->getPane()->getName(),
'dashlet' => $dashlet->getTitle(), 'dashlet' => $dashlet->getTitle(),
'org_dashlet' => $dashlet->getTitle(), 'org_dashlet' => $dashlet->getTitle(),
'url' => $dashlet->getUrl() 'url' => $dashlet->getUrl()->getRelativeUrl()
)); ));
} }
} }

View File

@ -55,8 +55,8 @@
</td> </td>
<td style="table-layout: fixed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"> <td style="table-layout: fixed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
<?= $this->qlink( <?= $this->qlink(
$dashlet->getUrl(), $dashlet->getUrl()->getRelativeUrl(),
$dashlet->getUrl(), $dashlet->getUrl()->getRelativeUrl(),
null, null,
array('title' => sprintf($this->translate('Show dashlet %s'), $dashlet->getTitle())) array('title' => sprintf($this->translate('Show dashlet %s'), $dashlet->getTitle()))
); ?> ); ?>
@ -78,4 +78,4 @@
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
</table> </table>
</div> </div>