Commit 46ea6713 authored by Elias Villiger's avatar Elias Villiger
Browse files

B4545 - After delete: reload page with original parameters - refs #4545, closes #4545

parent 8203e8f7
Pipeline #990 passed with stage
in 1 minute and 45 seconds
......@@ -3067,7 +3067,7 @@ SQL
* *typeAheadSql* = `SELECT ... AS 'id', ... AS 'value' WHERE name LIKE ? OR firstName LIKE ? LIMIT 100`
* If there is only one column in the SELECT statement, that one will be used and there is no dict (key/value pair).
* If there is no column `id` or no column `value`, than the first column becomes `id` and the second column becomes `value`.
* If there is no column `id` or no column `value`, then the first column becomes `id` and the second column becomes `value`.
* The query will be fired as a 'prepared statement'.
* The value, typed by the user, will be replaced on all places where a `?` appears.
* All `?` will be automatically surrounded by '%'. Therefore wildcard search is implemented: `... LIKE '%<?>%' ...`
......
......@@ -82,7 +82,7 @@ try {
// in case everything is fine, an empty string is returned. Else an Array.
$flagSuccess = ($answer === '');
$targetUrl = Store::getVar(SIP_TARGET_URL, STORE_SIP);
$targetUrl = str_replace('{{amp}}', '&', Store::getVar(SIP_TARGET_URL, STORE_SIP));
$modeAnswer = Store::getVar(SIP_MODE_ANSWER, STORE_SIP);
switch ($modeAnswer) {
......
......@@ -915,7 +915,8 @@ class Link {
break;
case TOKEN_ACTION_DELETE_REPORT:
$nameUrlParam .= '&' . SIP_MODE_ANSWER . '=' . MODE_HTML;
$nameUrlParam .= '&' . SIP_TARGET_URL . '=' . $_SERVER['REQUEST_URI'];
// Encode '&' in url to preserve parameters (#4545) - need to decode on use.
$nameUrlParam .= '&' . SIP_TARGET_URL . '=' . str_replace('&', '{{amp}}', $_SERVER['REQUEST_URI']);
break;
case TOKEN_ACTION_DELETE_CLOSE:
// TODO: Implement for Form (primary Record wird geloescht)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment