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:
parent
27c62b5ec5
commit
a5bae002a5
1 changed files with 2 additions and 2 deletions
|
@ -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" %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue