mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
b7476f2a46
The `%s` parent ID placeholder was being URL encoded, so it was not being replaced properly when adding a new page. This fix separately adds placeholder parameters to the URL to avoid this issue. The fix is not ideal, but there is no easy way to indicate that some URL parameters should be URL encoded and others should not while still correctly constructing the URL.
26 lines
1.1 KiB
Scheme
26 lines
1.1 KiB
Scheme
<div class="cms-content-toolbar">
|
|
<% include CMSPagesController_ContentToolActions %>
|
|
<% include CMSPagesController_ContentToolbar %>
|
|
</div>
|
|
|
|
<div class="ss-dialog cms-page-add-form-dialog cms-dialog-content" id="cms-page-add-form" title="<% _t('CMSMain.AddNew', 'Add new page') %>">
|
|
$AddForm
|
|
</div>
|
|
|
|
$ExtraTreeTools
|
|
|
|
<div class="center">
|
|
<% if $TreeIsFiltered %>
|
|
<div class="cms-tree-filtered cms-notice">
|
|
<strong><% _t('CMSMain.TreeFiltered', 'Filtered tree.') %></strong>
|
|
<a href="$LinkPages" class="cms-panel-link">
|
|
<% _t('CMSMain.TreeFilteredClear', 'Clear filter') %>
|
|
</a>
|
|
</div>
|
|
<% end_if %>
|
|
|
|
<div class="cms-tree" data-url-tree="$Link(getsubtree)" data-url-savetreenode="$Link(savetreenode)" data-url-updatetreenodes="$Link(updatetreenodes)" data-url-addpage="{$LinkPageAdd('AddForm/?action_doAdd=1', 'ParentID=%s&PageType=%s')}" data-url-editpage="$LinkPageEdit('%s')" data-url-duplicate="{$Link('duplicate/%s')}" data-url-duplicatewithchildren="{$Link('duplicatewithchildren/%s')}" data-url-listview="{$Link('?view=list')}" data-hints="$SiteTreeHints.XML" data-extra-params="SecurityID=$SecurityID">
|
|
$SiteTreeAsUL
|
|
</div>
|
|
</div>
|