From 070a6805ea97676a6309ecc7f65d0919c65b718e Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 5 Feb 2021 18:02:22 +0100 Subject: [PATCH] (cp 86c5611) fixes #1319 * Fixing parent definition when moving sub-album "Before" other album --- admin/themes/default/js/cat_move.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/themes/default/js/cat_move.js b/admin/themes/default/js/cat_move.js index f60914c28..17b33d988 100644 --- a/admin/themes/default/js/cat_move.js +++ b/admin/themes/default/js/cat_move.js @@ -200,6 +200,9 @@ function applyMove(event) { } moveRank = 1; } else if (event.move_info.position == 'before') { + if (moveParent == null) { + moveParent = 0 + } moveRank = 1; } moveNode(id, moveRank, moveParent).then(() => {