mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-25 21:25:21 +02:00
attempt to fix #2943
https://github.com/RSS-Bridge/rss-bridge/issues/2943
This commit is contained in:
parent
c0b6ccfea6
commit
9f1a66e48d
1 changed files with 22 additions and 0 deletions
|
@ -130,6 +130,28 @@ class DisplayAction implements ActionInterface
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
$params = $bridge->getParameters();
|
||||||
|
foreach ($params['global']??[] as $input => $values) {
|
||||||
|
if (
|
||||||
|
isset($values['defaultValue']) &&
|
||||||
|
$values['defaultValue'] === 'checked'
|
||||||
|
) {
|
||||||
|
if (!isset($request[$input])) {
|
||||||
|
$request[$input] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach ($params[$request['context']] as $input => $values) {
|
||||||
|
if (
|
||||||
|
isset($values['defaultValue']) &&
|
||||||
|
$values['defaultValue'] === 'checked'
|
||||||
|
) {
|
||||||
|
if (!isset($request[$input])) {
|
||||||
|
$request[$input] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$bridge->setDatas($bridge_params);
|
$bridge->setDatas($bridge_params);
|
||||||
$bridge->collectData();
|
$bridge->collectData();
|
||||||
$items = $bridge->getItems();
|
$items = $bridge->getItems();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue