core: fix problem_main status cross-domain get

This commit is contained in:
undefined committed 2021-12-21 21:01:29 +08:00
1 parent 40c90c0574
commit 92c1a41585
5 files changed
+16 -8

No files matched your search

@@ -41,7 +41,7 @@
</thead>
<tbody>
{%- for pdoc in pdocs -%}
{% set psdoc = psdict[pdoc['docId']] %}
{% set psdoc = psdict[pdoc.domainId + '#' + pdoc.docId] %}
<tr data-pid="{{ pdoc.docId }}">
<td class="col--checkbox display-mode-hide">
<label class="compact checkbox">
@@ -58,7 +58,7 @@
{% endif %}
<td class="col--name col--problem-name">
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
<form class="form--inline" action="{{ url('problem_main') }}" method="post">
<form class="form--inline" action="{{ url('problem_main', domainId = pdoc.domainId) }}" method="post">
<input type="hidden" name="pid" value="{{ pdoc.docId }}">
<input type="hidden" name="operation" value="{{ "star" if not psdoc.star else "unstar" }}">
<button class="star{% if psdoc.star %} activated{% endif %}" type="submit">