Фикс кнопки "Воспроизвелось"

This commit is contained in:
n1rwana 2022-08-22 12:43:36 +03:00
parent e30c434d94
commit d9a972a0f7
2 changed files with 2 additions and 2 deletions

View file

@ -231,7 +231,7 @@ final class BugtrackerPresenter extends OpenVKPresenter
if ($report->getReporter()->getId() === $this->user->identity->getId())
$this->flashFail("err", tr("forbidden"));
DB::i()->getContext()->table("bugs")->where("id", $report_id)->update("reproduced", $report->getReproducedCount() + 1);
DB::i()->getContext()->table("bugs")->where("id", $report_id)->update(["reproduced" => $report->getReproducedCount() + 1]);
$this->flashFail("succ", tr("bug_tracker_success"), tr("bug_tracker_reproduced_text"));
}

View file

@ -67,7 +67,7 @@
<button n:if="$isModerator" class="button" onClick="showBtPriorityChangeDialog({$bug->getId()}, {$reporter->getCoins()}, {$csrfToken})">{_bug_tracker_change_priority}</button>
<a n:if="$bug->getReporter()->getId() !== $user->identity->getId()" class="button" href="/bug{$bug->getId()}/reproduce">
{_bug_tracker_reproduced}
<span n:if="$bug->getReproducedCount() > 0">({$bug->getReproducedCount()})</span>
<span n:if="$bug->getReproducedCount() > 0" class="nobold">({$bug->getReproducedCount()})</span>
</a>
{if sizeof($comments) > 0}
<hr color="#DAE1E8" size="1">