Hi all, found an other bug when creating a new voucher.

In admin/coupon_admin.php, line 159
replace
$insert_id = tep_db_insert_id($query);
by
$insert_id = tep_db_insert_id();

this will prevent to have errors when adding a new voucher.
This will also fix when there is no name or description in final voucher

More...