mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
fixes #1319
* Fixing parent definition when moving sub-album "Before" other album
This commit is contained in:
@@ -200,6 +200,9 @@ function applyMove(event) {
|
|||||||
}
|
}
|
||||||
moveRank = 1;
|
moveRank = 1;
|
||||||
} else if (event.move_info.position == 'before') {
|
} else if (event.move_info.position == 'before') {
|
||||||
|
if (moveParent == null) {
|
||||||
|
moveParent = 0
|
||||||
|
}
|
||||||
moveRank = 1;
|
moveRank = 1;
|
||||||
}
|
}
|
||||||
moveNode(id, moveRank, moveParent).then(() => {
|
moveNode(id, moveRank, moveParent).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user