mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 09:14:34 +02:00
Fix Voucher Searching
This commit is contained in:
parent
9f09909616
commit
0c3386f0d1
3 changed files with 4 additions and 3 deletions
|
@ -367,7 +367,7 @@ switch ($action) {
|
|||
$paginator = Paginator::bootstrap('tbl_voucher', 'code', '%' . $code . '%');
|
||||
$d = ORM::for_table('tbl_plans')->where('enabled', '1')
|
||||
->join('tbl_voucher', array('tbl_plans.id', '=', 'tbl_voucher.id_plan'))
|
||||
->where_like('tbl_plans.code', '%' . $code . '%')
|
||||
->where_like('tbl_voucher.code', '%' . $code . '%')
|
||||
->offset($paginator['startpoint'])
|
||||
->limit($paginator['limit'])
|
||||
->find_many();
|
||||
|
@ -380,6 +380,7 @@ switch ($action) {
|
|||
}
|
||||
|
||||
$ui->assign('d', $d);
|
||||
$ui->assign('_code', $code);
|
||||
$ui->assign('paginator', $paginator);
|
||||
run_hook('view_list_voucher'); #HOOK
|
||||
$ui->display('voucher.tpl');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue