combining mt:unique with mt:join

Error message

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'comment_node_forum_form' not found or invalid function name in drupal_retrieve_form() (line 844 of /var/www/


I have a template to generate reports based on Nessus output. One of the output fields is CVE, BID and OSVDB.
If I generate a report, I use the following statement to get all CVE's for a finding:

{{mt:join(//finding[@title = $_0]/cve,', ')|leaf}}

I get however the same data back several times if several hosts have this vulnerability. I guess I have to use mt:unique, but then I don't get all CVE's.

Please help me!

BTW: thanks for this truly amazing tool.

Did you try {{mt:join(mt:unique(//finding[@title = $_0]/cve),', ')|leaf}}? Is that where you don't get all CVEs?


That looks like a bug. mt:unique() shouldn't loose data. I'll test it and let you know.

Add new comment

Please answer the question to prove that you are not a spammer. If it isn't working and you are not a spammer, please email us.
Fill in the blank.