Bug #20722
closedPagetree: Expand/collaps DB-Mounts buggy
0%
Description
Problem:
User X has to DB-mounts
DBM 1
DBM 2
If he/she expands DBM 1 in the pagetree DBM 2 disappears completely. You can only get it back by reloading the tree.
(issue imported from #M11482)
Files
Updated by Nabil Saleh over 15 years ago
I tried to reproduce this error:
1st. created a testuser with a group that may see/edit all pages
2nd. added 2 small trees as dbmounts
3rd. su to the user in Firefox expand/reduce works fine on any mount
4th. logged in (not su) in IE8 => no problem either
am i missing something?
Updated by Andreas Wolf over 15 years ago
This problem was introduced in revision 5342 - at least that's what a quick hunt with "git bisect" told me. I'll track it further down and provide a patch if possible
Updated by Andreas Wolf over 15 years ago
I attached a patch for the issue. The problem was an unclosed div element with collapsed trees. This made at least Firefox get totally confused because of the messed up DOM structure.
The solution is quite simple: Always close the div element - which is used for styling tree elements - after the elements text. A subtree, if available, is now outside the div, directly underneath the ul - and besides the div.
Updated by Andreas Wolf over 15 years ago
The patch has one small flaw when applied with some patch tools. They don't seem to like the second line, which was added by git. In that case, just remove this line.