1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 22:45:23 +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">
<option value="0">Root</option>
{% for _page in pagesAvailableGrouped %}
{% if _page._id != currentPageId %}
<option value="{{ _page._id }}" {{ page is not empty and page._parent == _page._id ? 'selected' : ''}}>
{% if _page._id.toString() != currentPageId.toString() %}
<option value="{{ _page._id }}" {{ page is not empty and page._parent.toString() == _page._id.toString() ? 'selected' : ''}}>
{% if _page._parent != "0" %}
&nbsp;
&nbsp;