forked from Wavyzz/dolibarr
Merge pull request #13816 from atm-gauthier/10.0_missinghookinit_and_tablefix
FIX : missing hook init + table class + $page not set
This commit is contained in:
@@ -53,6 +53,7 @@ $search_ref = GETPOST('search_ref', 'alpha');
|
|||||||
$search_amount = GETPOST('search_amount', 'alpha');
|
$search_amount = GETPOST('search_amount', 'alpha');
|
||||||
|
|
||||||
$bon=new BonPrelevement($db, "");
|
$bon=new BonPrelevement($db, "");
|
||||||
|
$hookmanager->initHooks(array('withdrawalsreceiptslist'));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ $search_company = GETPOST('search_company', 'alpha');
|
|||||||
$statut = GETPOST('statut', 'int');
|
$statut = GETPOST('statut', 'int');
|
||||||
|
|
||||||
$bon=new BonPrelevement($db, "");
|
$bon=new BonPrelevement($db, "");
|
||||||
|
$hookmanager->initHooks(array('withdrawalsreceiptslineslist'));
|
||||||
$ligne=new LignePrelevement($db, $user);
|
$ligne=new LignePrelevement($db, $user);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ $result = restrictedArea($user, 'prelevement', '', '', 'bons');
|
|||||||
|
|
||||||
// Get supervariables
|
// Get supervariables
|
||||||
$page = GETPOST('page', 'int');
|
$page = GETPOST('page', 'int');
|
||||||
|
if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1
|
||||||
$sortorder = GETPOST('sortorder', 'alpha');
|
$sortorder = GETPOST('sortorder', 'alpha');
|
||||||
$sortfield = GETPOST('sortfield', 'alpha');
|
$sortfield = GETPOST('sortfield', 'alpha');
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ if ($sortorder == "") $sortorder="DESC";
|
|||||||
if ($sortfield == "") $sortfield="p.datec";
|
if ($sortfield == "") $sortfield="p.datec";
|
||||||
|
|
||||||
$rej = new RejetPrelevement($db, $user);
|
$rej = new RejetPrelevement($db, $user);
|
||||||
|
$hookmanager->initHooks(array('withdrawalsreceiptsrejectedlist'));
|
||||||
$ligne = new LignePrelevement($db, $user);
|
$ligne = new LignePrelevement($db, $user);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -85,7 +87,7 @@ if ($result)
|
|||||||
|
|
||||||
print_barre_liste($langs->trans("WithdrawsRefused"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num);
|
print_barre_liste($langs->trans("WithdrawsRefused"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num);
|
||||||
print"\n<!-- debut table -->\n";
|
print"\n<!-- debut table -->\n";
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder tagtable liste" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre("Line", $_SERVER["PHP_SELF"], "p.ref", '', $urladd);
|
print_liste_field_titre("Line", $_SERVER["PHP_SELF"], "p.ref", '', $urladd);
|
||||||
print_liste_field_titre("ThirdParty", $_SERVER["PHP_SELF"], "s.nom", '', $urladd);
|
print_liste_field_titre("ThirdParty", $_SERVER["PHP_SELF"], "s.nom", '', $urladd);
|
||||||
|
|||||||
Reference in New Issue
Block a user