User tests: Successful: Unsuccessful:
Assocations modal current doesn't evaluate the forced language when trying to select a counterpart language for an (e.g. article).
@dgrammatiko I'm well aware this seems sub-optimal (security etc) - but definitely fixes the issue in chrome (and is the original code we had in bootstrap-init.js from #21176). Where does this code come from in J3 btw? I'm so confused :D
Load an article in com_assocations and try and select a counterpart language. Before patch no articles show to select. After patch they do.
None
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository NPM Change |
Title |
|
This solves not only the list display in com_associations popu-up when using the Target button, but also the Edit Article modal displaying a new article to create instead of the article to edit.
I have tested this item
I have tested this item
Edit el = (new Function(idFieldArr[0]))(); should do the same
Unfortunately it doesn't. It doesn't find the element with document.getElementById so just spits out undefined - I tried that first
merge this and I will try to fix the modal field at some point
When editing article in popup and using the Close or save and close button, I get here a js error which has no apparent impact on the results
Uncaught TypeError: dropDownBtn is null
<anonymous> http://localhost:8888/newfolder/joomla40/media/com_workflow/js/admin-items-workflow-buttons.js?72877f5947223d2ad184590c607abc42:50
EventListener.handleEvent* http://localhost:8888/newfolder/joomla40/media/com_workflow/js/admin-items-workflow-buttons.js?72877f5947223d2ad184590c607abc42:48
<anonymous> http://localhost:8888/newfolder/joomla40/media/com_workflow/js/admin-items-workflow-buttons.js?72877f5947223d2ad184590c607abc42:130
admin-items-workflow-buttons.js:50:23
When save and close
I may get
Uncaught Error: The component must be in a context to send: triggerEvent
<button title="Formats" aria-label="Formats" aria-haspopup="true" type="button" unselectable="on" tabindex="-1" class="tox-tbtn tox-tbtn--select tox-tbtn--bespoke" style="user-select: none;" aria-expanded="false"></button> is not in context.
t http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
$o http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
qo http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
n http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
e http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
nodeChanged http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:24821
nodeChanged http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:28427
1 http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:21296
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
addUndoLevel http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:17305
addUndoLevel http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:17407
addUndoLevel$1 http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:17630
add http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:21316
addNonTypingUndoLevel http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:21208
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
save http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:28526
render http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:26760
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
formEventDelegate http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:26733
executeHandlers http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:5146
defaultNativeHandler http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:4949
submitform http://localhost:8888/newfolder/joomla40/media/system/js/core.js?4f9ecdeceffffd46b53e938246561f54:410
submitbutton http://localhost:8888/newfolder/joomla40/media/system/js/core.js?4f9ecdeceffffd46b53e938246561f54:446
processModalEdit http://localhost:8888/newfolder/joomla40/media/system/js/fields/modal-fields.js?01305c3c4d24ff10a376dcf30f48636b:171
onclick http://localhost:8888/newfolder/joomla40/administrator/index.php?option=com_menus&view=item&client_id=0&layout=edit&id=131:1
theme.min.js:9:28139
t http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
$o http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
qo http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
n http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
e http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/themes/silver/theme.min.js:9
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
nodeChanged http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:24821
nodeChanged http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:28427
1 http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:21296
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
addUndoLevel http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:17305
addUndoLevel http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:17407
addUndoLevel$1 http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:17630
add http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:21316
addNonTypingUndoLevel http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:21208
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
save http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:28526
render http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:26760
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27512
fire http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:27617
formEventDelegate http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:26733
executeHandlers http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:5146
defaultNativeHandler http://localhost:8888/newfolder/joomla40/media/vendor/tinymce/tinymce.js?4f9ecdeceffffd46b53e938246561f54:4949
submitform http://localhost:8888/newfolder/joomla40/media/system/js/core.js?4f9ecdeceffffd46b53e938246561f54:410
submitbutton http://localhost:8888/newfolder/joomla40/media/system/js/core.js?4f9ecdeceffffd46b53e938246561f54:446
processModalEdit http://localhost:8888/newfolder/joomla40/media/system/js/fields/modal-fields.js?01305c3c4d24ff10a376dcf30f48636b:171
onclick http://localhost:8888/newfolder/joomla40/administrator/index.php?option=com_menus&view=item&client_id=0&layout=edit&id=131:1
and sometimes
and
NS_ERROR_UNEXPECTED: theme.min.js:9
@infograf768 open a new issue for this, it will need some testing/debugging
Will do, once this is tested by second tester and merged.
It has already 2 tests
@dgrammatiko
The second tester was already blocked under various aliases. Let's wait for another tester.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-02-03 10:44:45 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
tbh I have no clue, I think all this code is related to the modal field, so fixing this somehow we need to fix how those modals are created/initialised/etc. I think a simple solution would be to use a
<template>
and attach the iframe/buttons needed per instance. For now this will doEdit
el = (new Function(idFieldArr[0]))();
should do the same