1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-08 06:55:26 +02:00

fix bug with parent selector

This commit is contained in:
Nikita Melnikov 2022-10-02 13:47:14 +08:00
parent 27c62b5ec5
commit a5bae002a5

View file

@ -27,8 +27,8 @@
<select id="parent" name="parent"> <select id="parent" name="parent">
<option value="0">Root</option> <option value="0">Root</option>
{% for _page in pagesAvailableGrouped %} {% for _page in pagesAvailableGrouped %}
{% if _page._id != currentPageId %} {% if _page._id.toString() != currentPageId.toString() %}
<option value="{{ _page._id }}" {{ page is not empty and page._parent == _page._id ? 'selected' : ''}}> <option value="{{ _page._id }}" {{ page is not empty and page._parent.toString() == _page._id.toString() ? 'selected' : ''}}>
{% if _page._parent != "0" %} {% if _page._parent != "0" %}
&nbsp; &nbsp;
&nbsp; &nbsp;