Commit f1a7a706 authored by Carsten  Rose's avatar Carsten Rose
Browse files

B7848 extraColumName 'paged' - easier handling in case 'r=0' or empty 'U:...' - fixes #7848

parent e3cce23e
Pipeline #1503 failed with stage
in 2 minutes and 9 seconds
......@@ -1600,15 +1600,20 @@ EOF;
*/
private function buildActionDelete($vars, $value) {
if ($vars[NAME_URL_PARAM] == '') {
$vars[NAME_RENDER] = RENDER_MODE_5;
return $vars;
}
// Minimal check for required parameter.
$this->checkDeleteParam($vars[NAME_URL_PARAM]);
if ($vars[NAME_URL] == '') {
$vars[NAME_URL] = API_DIR . '/' . API_DELETE_PHP;
}
// if ($vars[NAME_URL] == '') {
// $vars[NAME_URL] = API_DIR . '/' . API_DELETE_PHP;
// }
if (!isset($vars[NAME_LINK_CLASS])) {
// no_class: By default a button will be rendered. NAME_URL typically implies class external. That does not match.
// no_class: By default a button will be rendered.
$vars[NAME_LINK_CLASS_DEFAULT] = NO_CLASS;
}
......@@ -1632,7 +1637,7 @@ EOF;
// Fill array 'found' with every given token
$found = KeyValueStringParser::parse($urlParam, '=', '&');
$flagRecordId = isset($found[SIP_RECORD_ID]) && $found[SIP_RECORD_ID] != '' && $found[SIP_RECORD_ID] > 0;
$flagRecordId = isset($found[SIP_RECORD_ID]);
$flagTable = isset($found[SIP_TABLE]) && $found[SIP_TABLE] != '';
$flagForm = isset($found[SIP_FORM]) && $found[SIP_FORM] != '';
......
Markdown is supported
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