Commit 0bf4dec7 authored by Frank Bergmann's avatar Frank Bergmann

cosine #5736: Dealing with FinDocs in other project:

The algorithm is working on a tree, so we need to have
all FinDocs in a hash first (otherwise the algorithm
would become slow). Currently we fetch all FinDocs
of the FinDoc's project. This would have to be
extended to really fix this bug.
parent 4538c9a8
......@@ -21,7 +21,7 @@
</td>
<td width='30%'>
<p>This portlet shows predecessors (= financial documents from which this document was created)
and successors (= financial documents created based on this one).</p>
and successors (= financial documents created based on this one) in this project.</p>
</td>
</td>
</table>
......
......@@ -42,6 +42,7 @@ ad_proc im_invoice_dependency_tree_sort_invoices {
set slist [list]
foreach l $list {
if {![info exists name_hash($l)]} { set name_hash($l) "Deleted $l" }
lappend slist [list $name_hash($l) $l]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment