Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
14c31b451c
@ -1923,10 +1923,6 @@ function getElementProperties($element_type)
|
|||||||
$subelement = $regs[2];
|
$subelement = $regs[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
$classfile = strtolower($subelement);
|
|
||||||
$classname = ucfirst($subelement);
|
|
||||||
$classpath = $module.'/class';
|
|
||||||
|
|
||||||
// For compat
|
// For compat
|
||||||
if($element_type == "action") {
|
if($element_type == "action") {
|
||||||
$classpath = 'comm/action/class';
|
$classpath = 'comm/action/class';
|
||||||
@ -1991,8 +1987,22 @@ function getElementProperties($element_type)
|
|||||||
$module='propal';
|
$module='propal';
|
||||||
$subelement='propaleligne';
|
$subelement='propaleligne';
|
||||||
}
|
}
|
||||||
$classfile = strtolower($subelement);
|
if ($element_type == 'order_supplier') {
|
||||||
$classname = ucfirst($subelement);
|
$classpath = 'fourn/class';
|
||||||
|
$module='fournisseur';
|
||||||
|
$subelement='commandefournisseur';
|
||||||
|
$classfile='fournisseur.commande';
|
||||||
|
}
|
||||||
|
if ($element_type == 'invoice_supplier') {
|
||||||
|
$classpath = 'fourn/class';
|
||||||
|
$module='fournisseur';
|
||||||
|
$subelement='facturefournisseur';
|
||||||
|
$classfile='fournisseur.facture';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($classfile)) $classfile = strtolower($subelement);
|
||||||
|
if (!isset($classname)) $classname = ucfirst($subelement);
|
||||||
|
if (!isset($classpath)) $classpath = $module.'/class';
|
||||||
|
|
||||||
$element_properties = array(
|
$element_properties = array(
|
||||||
'module' => $module,
|
'module' => $module,
|
||||||
|
|||||||
@ -65,7 +65,7 @@ $optioncss = GETPOST('optioncss','alpha');
|
|||||||
$limit = GETPOST("limit")?GETPOST("limit","int"):$conf->liste_limit;
|
$limit = GETPOST("limit")?GETPOST("limit","int"):$conf->liste_limit;
|
||||||
$sortfield = GETPOST("sortfield",'alpha');
|
$sortfield = GETPOST("sortfield",'alpha');
|
||||||
$sortorder = GETPOST("sortorder",'alpha');
|
$sortorder = GETPOST("sortorder",'alpha');
|
||||||
$page = GETPOST("page",'int');
|
$page = (GETPOST("page",'int')?GETPOST("page", 'int'):0);
|
||||||
if ($page == -1) { $page = 0; }
|
if ($page == -1) { $page = 0; }
|
||||||
$offset = $limit * $page;
|
$offset = $limit * $page;
|
||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user