| Detailed description |
When you create a document group that has subgroups which actually holds the documents, the parent (and consequently, all the childs) does not appear in the JavaScript document's tree in the "View Document" tab.
The problem is in /www/docman/index.php, function docman_recursive_display, that checks manually if the DocumentGroup has documents (and misses the check for subgroups), instead of using the hasDocument() method.
I'm attaching a patch which seems to works for me.
As an additional note, i suggest to default the second argument of the hasDocument() method to new DocumentFactory ($this->getGroup()). |
|