Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/2341
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Dec 14, 2019
1 parent fa0f2c1 commit 5bfb4e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion view/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,9 @@

<option value="0">Category - Use site default</option>
<?php
array_multisort(array_column($_SESSION['login']->categories, 'hierarchyAndName'), SORT_ASC, $_SESSION['login']->categories);
foreach ($_SESSION['login']->categories as $key => $value) {
echo '<option value="' . $value->id . '">' . $value->name . '</option>';
echo '<option value="' . $value->id . '">' . $value->hierarchyAndName . '</option>';
}
?>
</select>
Expand Down
3 changes: 2 additions & 1 deletion view/jquery-file-upload/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

<option value="0">Category - Use site default</option>
<?php
array_multisort(array_column($_SESSION['login']->categories, 'hierarchyAndName'), SORT_ASC, $_SESSION['login']->categories);
foreach ($_SESSION['login']->categories as $key => $value) {
echo '<option value="' . $value->id . '">' . $value->name . '</option>';
echo '<option value="' . $value->id . '">' . $value->hierarchyAndName . '</option>';
}
?>
</select>
Expand Down
3 changes: 2 additions & 1 deletion view/mini-upload-form/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

<option value="0">Category - Use site default</option>
<?php
array_multisort(array_column($_SESSION['login']->categories, 'hierarchyAndName'), SORT_ASC, $_SESSION['login']->categories);
foreach ($_SESSION['login']->categories as $key => $value) {
echo '<option value="' . $value->id . '">' . $value->name . '</option>';
echo '<option value="' . $value->id . '">' . $value->hierarchyAndName . '</option>';
}
?>
</select>
Expand Down

0 comments on commit 5bfb4e6

Please sign in to comment.