Filter is kept after saving workflow

This commit is contained in:
Frank Schubert
2021-08-31 11:59:58 +02:00
parent ffcbbe3d02
commit 807bf3d35e
3 changed files with 27 additions and 22 deletions

View File

@@ -207,22 +207,27 @@ class mfBaseController {
}
}*/
if(is_array($params) && count($params)) {
$url .= (MFUSEFANCYURLS) ? "/?" : "&";
foreach($params as $k => $v) {
$v = urlencode($v);
if($k) {
$k = urlencode($k);
$url .= "$k=$v&";
} else {
$url .= "$v&";
}
}
$url = preg_replace('/&$/', '', $url);
if($params) {
if(is_array($params) && count($params)) {
$url .= (MFUSEFANCYURLS) ? "/?" : "&";
foreach($params as $k => $v) {
$v = urlencode($v);
if($k) {
$k = urlencode($k);
$url .= "$k=$v&";
} else {
$url .= "$v&";
}
}
$url = preg_replace('/&$/', '', $url);
} else {
$url .= (MFUSEFANCYURLS) ? "/?" : "&";
$url .= $params;
}
}
if($anker) {
$url.="#$anker";
}