attempt to fix #2943

https://github.com/RSS-Bridge/rss-bridge/issues/2943
This commit is contained in:
mruac 2023-09-07 22:36:16 +09:30
parent c0b6ccfea6
commit 9f1a66e48d

View File

@ -130,6 +130,28 @@ class DisplayAction implements ActionInterface
}
} else {
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->collectData();
$items = $bridge->getItems();