A free, self-hostable news aggregator…
Fix bug if a shortcut is not in the initial config
Marien Fressinaud9483c6cf6759
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.phpindex f1c465c7c..e808630b4 100644--- a/app/Models/ConfigurationSetter.php+++ b/app/Models/ConfigurationSetter.php@@ -154,9 +154,7 @@ class FreshRSS_ConfigurationSetter {private function _shortcuts(&$data, $values) {foreach ($values as $key => $value) {- if (isset($data['shortcuts'][$key])) {- $data['shortcuts'][$key] = $value;- }+ $data['shortcuts'][$key] = $value;}}diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtmlindex fdbeed3ea..f68091af9 100644--- a/app/views/configure/shortcut.phtml+++ b/app/views/configure/shortcut.phtml@@ -114,7 +114,7 @@<div class="form-group"><label class="group-name" for="close_dropdown_shortcut"><?php echo _t('conf.shortcut.close_dropdown'); ?></label><div class="group-controls">- <input type="text" id="help_shortcut" name="shortcuts[close_dropdown]" list="keys" value="<?php echo $s['close_dropdown']; ?>" />+ <input type="text" id="close_dropdown" name="shortcuts[close_dropdown]" list="keys" value="<?php echo $s['close_dropdown']; ?>" /></div></div>