Просмотр исходного кода

Fix wrong error redirect in subscription management (#8625)

Was supposed to show feeds with errors on redirect, only if they were being shown before, not when you modify a feed with an error.
Inverle 1 неделя назад
Родитель
Сommit
ebaac787e0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/views/subscription/index.phtml

+ 1 - 1
app/views/subscription/index.phtml

@@ -62,7 +62,7 @@
 				?>
 				<li class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $title ?>"
 					draggable="true" data-feed-id="<?= $feed->id() ?>" data-priority="<?= $feed->priority() ?>">
-					<a class="configure open-slider" href="<?= _url('subscription', 'feed', 'id', $feed->id(), 'error', $feed->inError() ? 1 : 0) ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a><?php
+					<a class="configure open-slider" href="<?= _url('subscription', 'feed', 'id', $feed->id(), 'error', Minz_Request::paramBoolean('error') ? 1 : 0) ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a><?php
 					if (FreshRSS_Context::userConf()->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php
 					endif; ?><span class="item-title"><?= $feed->name() ?></span>
 				</li>