Bug #83923
closed
TCA Linkwizard does not save New Files at the first time
Added by Paul Beck almost 7 years ago.
Updated about 6 years ago.
Category:
Backend JavaScript
Description
The link wizard of TCA fields - for example at the "header_link" field of tt_content - does not accept links to new files if you just uploaded them in the wizard.
How to reproduce:
- Open a tt_content element
- Open the link wizard next to header link
- Switch to "File" in the wizard
- Upload a new file to any folder
- Select the new uploaded file
- Then the wizard will close but the field head link will stay empty
- Open the wizard again and select the file and it will be set as header link
- Status changed from New to Accepted
- Target version set to 9.2
The issue does not affect new files only, but any file when a new file has been uploaded.
This is a nasty bug.
As in FormEngineLinkBrowserAdapter.checkreference the window.opener is checked, this is gone by any form action inside the Wizardwindow.
So this has to be changed completely to local var, and has to be included in each form of the Wizardwindow.
FormEngineLinkBrowserAdapter.checkReference = function() {
var selector = 'form[name="' + LinkBrowser.parameters.formName + '"] [data-formengine-input-name="' + LinkBrowser.parameters.itemName + '"]';
if (window.opener && window.opener.document && window.opener.document.querySelector(selector)) {
return window.opener.document.querySelector(selector);
} else {
close();
}
};
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF