fix errors / exceptions in merge-print or other downloads do NOT show the error but trigger a redirect giving potentially a different unrelated error

A better fix would be to use a different cd-code e.g. cd=postSubmit and fix the server-side framework to return the framework / sidebox AND the page-content incl. the error, which it currently does not :(
With cd=popup we don't get the framework / sidebox (if running in the main window), but we get the error and a F5 / reload fixes the framework
This commit is contained in:
ralf 2024-12-19 11:19:48 +01:00
parent 2bec393ad2
commit da6faa5b1d

View File

@ -1231,7 +1231,7 @@ export class etemplate2
this.unbind_unload(); this.unbind_unload();
const form = jQuery("<form id='form' action='" + egw().webserverUrl + const form = jQuery("<form id='form' action='" + egw().webserverUrl +
"/index.php?menuaction=" + this._widgetContainer.egw().getAppName() + ".EGroupware\\Api\\Etemplate.process_exec&ajax=true' method='POST'>"); "/index.php?menuaction=" + this._widgetContainer.egw().getAppName() + ".EGroupware\\Api\\Etemplate.process_exec&cd=popup' method='POST'>");
const etemplate_id = jQuery(document.createElement("input")) const etemplate_id = jQuery(document.createElement("input"))
.attr("name", 'etemplate_exec_id') .attr("name", 'etemplate_exec_id')