Hi,
We noted that javascript is getting stripped from custom forms in programs in 2.29 and 2.30 when saving. Is this an expected behavior or a bug? Replicated in play.dhis2.org
Hi,
We noted that javascript is getting stripped from custom forms in programs in 2.29 and 2.30 when saving. Is this an expected behavior or a bug? Replicated in play.dhis2.org
I have experienced the same with 2.29. I have to recopy the javascript every time I am doing the changes to the custom form.
@Pamod and @KMurumba; itās nice of you to bring this to our attention. @Stian - is this something you are able to provide insight on?
Hi,
as far as I can tell we donāt manipulate the payload we receive on the backend. @birkbjo is maintaining the maintenance app and might be able to provide some more information on this. This could potentially be a bug.
Has anyone made any progress on why this happens? It is being tracked in Jira since Nov 2018 but was set in status of āneeds infoā. I provided my experience in 2.32 with screenshots.
@chase.freeman - Thanks for the detailed bug report! Tagging @dhis2-platform so they can have a further look.
Thanks for the bug reports. Iāve looked into this. The problem does not seem to be with the javascript itself, but the āsourceā mode in the editor. For changes to be saved while in āsourceā-mode you need to go back to HTML-mode before saving the form. This is due to the third-party āpluginā we use for the editor.
Iām looking into fixing this so that it behaves similiary to the regular mode. However for now, this should be a workaround. Let me know if you still have problems.