mirror of
https://github.com/openvk/openvk
synced 2024-12-24 17:41:07 +03:00
Фикс кнопки "Воспроизвелось"
This commit is contained in:
parent
e30c434d94
commit
d9a972a0f7
2 changed files with 2 additions and 2 deletions
|
@ -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"));
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue