We are working on transitioning from the legacy web client to the unified interface. We found a problem when trying to add a file to an email. The button in section above the form returns an error. We also have a section on the form where all the attachments are. This section has its own button to add more attachments and this button does work correctly. In the old web client both buttons work fine. See the screenshots below.
The downloaded log file contains the following:
TypeError: Cannot read property 'getParentForm' of null
at Function.AddAttachment.addAttachmentInternal (nhabv.crm4.dynamics.com/.../ActivityMimeAttachment.js:1388:42)
at Function.AddAttachment.openAddAttachmentDialogFormCommand (nhabv.crm4.dynamics.com/.../ActivityMimeAttachment.js:1378:27)
at Function.a.openAddAttachmentDialogFormCommand (nhabv.crm4.dynamics.com/.../ContextualEmail_main_system_library.js:1:1865)
at t.openAddAttachmentDialogFormCommand (nhabv.crm4.dynamics.com/.../ContextualEmail_main_system_library.js:1:1252)
at il.executeFunction (nhabv.crm4.dynamics.com/.../app.js
at il.execute (nhabv.crm4.dynamics.com/.../app.js
at nhabv.crm4.dynamics.com/.../3.js
at i (nhabv.crm4.dynamics.com/.../app.js
at nhabv.crm4.dynamics.com/.../3.js
at Array.forEach (<anonymous>)
Any ideas on how to solve this problem?