mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix merge regressions from 3.2 -> 3
This commit is contained in:
parent
48a30909f3
commit
4e3d6f9118
@ -181,7 +181,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If no action is selected, enable all nodes
|
// If no action is selected, enable all nodes
|
||||||
if(!actionURL || actionURL == -1 || !viewMode.hasClass('active')) {
|
if(!actionUrl || actionUrl == -1 || !viewMode.hasClass('active')) {
|
||||||
$(rootNode).find('li').each(function() {
|
$(rootNode).find('li').each(function() {
|
||||||
$(this).setEnabled(true);
|
$(this).setEnabled(true);
|
||||||
});
|
});
|
||||||
|
@ -470,7 +470,10 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
|||||||
|
|
||||||
protected function viewfile_getLocalFileByURL($fileUrl) {
|
protected function viewfile_getLocalFileByURL($fileUrl) {
|
||||||
$filteredUrl = Director::makeRelative($fileUrl);
|
$filteredUrl = Director::makeRelative($fileUrl);
|
||||||
|
|
||||||
|
// Remove prefix and querystring
|
||||||
$filteredUrl = Image::strip_resampled_prefix($filteredUrl);
|
$filteredUrl = Image::strip_resampled_prefix($filteredUrl);
|
||||||
|
list($filteredUrl) = explode('?', $filteredUrl);
|
||||||
|
|
||||||
$file = File::get()->filter('Filename', $filteredUrl)->first();
|
$file = File::get()->filter('Filename', $filteredUrl)->first();
|
||||||
|
|
||||||
@ -513,6 +516,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
|||||||
$file = null;
|
$file = null;
|
||||||
$url = null;
|
$url = null;
|
||||||
|
|
||||||
|
|
||||||
// TODO Would be cleaner to consistently pass URL for both local and remote files,
|
// TODO Would be cleaner to consistently pass URL for both local and remote files,
|
||||||
// but GridField doesn't allow for this kind of metadata customization at the moment.
|
// but GridField doesn't allow for this kind of metadata customization at the moment.
|
||||||
if($fileUrl = $request->getVar('FileURL')) {
|
if($fileUrl = $request->getVar('FileURL')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user