Merge branch '3.5' of github.com:FHenry/dolibarr into 3.5
Conflicts: ChangeLog
This commit is contained in:
commit
0c5c1cf849
@ -16,6 +16,9 @@ Fix: [ bug #1432 ] Trigger SHIPPING_CREATE ignores interception on error.
|
|||||||
Fix: [ bug #1449 ] Trigger ORDER_CREATE, LINEORDER_DELETE, LINEORDER_UPDATE and LINEORDER_INSERT ignore interception on error.
|
Fix: [ bug #1449 ] Trigger ORDER_CREATE, LINEORDER_DELETE, LINEORDER_UPDATE and LINEORDER_INSERT ignore interception on error.
|
||||||
Fix: [ bug #1450 ] Several Customer order's triggers do not report the error from the trigger handler.
|
Fix: [ bug #1450 ] Several Customer order's triggers do not report the error from the trigger handler.
|
||||||
Fix: [ bug #1451 ] Interrupted order clone through trigger, loads nonexistent order.
|
Fix: [ bug #1451 ] Interrupted order clone through trigger, loads nonexistent order.
|
||||||
|
Fix: [ bug #1454 ] Mention de bas de page erroné
|
||||||
|
Fix: Do not display dictionnay for non activated module
|
||||||
|
Fix: Link element from element project pages
|
||||||
|
|
||||||
***** ChangeLog for 3.5.3 compared to 3.5.2 *****
|
***** ChangeLog for 3.5.3 compared to 3.5.2 *****
|
||||||
Fix: Error on field accountancy code for export profile of invoices.
|
Fix: Error on field accountancy code for export profile of invoices.
|
||||||
|
|||||||
@ -168,6 +168,7 @@ class FormProjets
|
|||||||
*/
|
*/
|
||||||
function select_element($table_element)
|
function select_element($table_element)
|
||||||
{
|
{
|
||||||
|
global $conf;
|
||||||
|
|
||||||
$projectkey="fk_projet";
|
$projectkey="fk_projet";
|
||||||
switch ($table_element)
|
switch ($table_element)
|
||||||
@ -195,7 +196,7 @@ class FormProjets
|
|||||||
if (!empty($this->societe->id)) {
|
if (!empty($this->societe->id)) {
|
||||||
$sql.= " AND fk_soc=".$this->societe->id;
|
$sql.= " AND fk_soc=".$this->societe->id;
|
||||||
}
|
}
|
||||||
$sql.= ' AND entity='.$conf->entity;
|
$sql.= ' AND entity='.getEntity('project');
|
||||||
$sql.= " ORDER BY ref DESC";
|
$sql.= " ORDER BY ref DESC";
|
||||||
|
|
||||||
dol_syslog(get_class($this).'::select_element sql='.$sql,LOG_DEBUG);
|
dol_syslog(get_class($this).'::select_element sql='.$sql,LOG_DEBUG);
|
||||||
@ -219,6 +220,10 @@ class FormProjets
|
|||||||
return $sellist ;
|
return $sellist ;
|
||||||
|
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
|
}else {
|
||||||
|
$this->error=$this->db->lasterror();
|
||||||
|
dol_syslog(get_class($this) . "::select_element " . $this->error, LOG_ERR);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -937,6 +937,8 @@ function complete_dictionnary_with_modules(&$taborder,&$tabname,&$tablib,&$tabsq
|
|||||||
$const_name = 'MAIN_MODULE_'.strtoupper(preg_replace('/^mod/i','',get_class($objMod)));
|
$const_name = 'MAIN_MODULE_'.strtoupper(preg_replace('/^mod/i','',get_class($objMod)));
|
||||||
if ($objMod->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2 && ! $conf->global->$const_name) $modulequalified=0;
|
if ($objMod->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2 && ! $conf->global->$const_name) $modulequalified=0;
|
||||||
if ($objMod->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1 && ! $conf->global->$const_name) $modulequalified=0;
|
if ($objMod->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1 && ! $conf->global->$const_name) $modulequalified=0;
|
||||||
|
//If module is not activated disqualified
|
||||||
|
if (empty($conf->global->$const_name)) $modulequalified=0;
|
||||||
|
|
||||||
if ($modulequalified)
|
if ($modulequalified)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -273,8 +273,6 @@ class modProduct extends DolibarrModules
|
|||||||
|
|
||||||
// Import product multiprice
|
// Import product multiprice
|
||||||
//--------
|
//--------
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$r++;
|
$r++;
|
||||||
$this->import_code[$r]=$this->rights_class.'_'.$r;
|
$this->import_code[$r]=$this->rights_class.'_'.$r;
|
||||||
$this->import_label[$r]="ProductsMultiPrice"; // Translation key
|
$this->import_label[$r]="ProductsMultiPrice"; // Translation key
|
||||||
|
|||||||
@ -1092,7 +1092,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
*/
|
*/
|
||||||
function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext=0)
|
function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext=0)
|
||||||
{
|
{
|
||||||
return pdf_pagefoot($pdf,$outputlangs,'SUPPLIER_INVOICE_FREE_TEXT',$this->emetteur,$this->marge_basse,$this->marge_gauche,$this->page_hauteur,$object,0,$hidefreetext);
|
return pdf_pagefoot($pdf,$outputlangs,'SUPPLIER_ORDER_FREE_TEXT',$this->emetteur,$this->marge_basse,$this->marge_gauche,$this->page_hauteur,$object,0,$hidefreetext);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -209,13 +209,18 @@ foreach ($listofreferent as $key => $value)
|
|||||||
$classname=$value['class'];
|
$classname=$value['class'];
|
||||||
$tablename=$value['table'];
|
$tablename=$value['table'];
|
||||||
$qualified=$value['test'];
|
$qualified=$value['test'];
|
||||||
|
|
||||||
if ($qualified)
|
if ($qualified)
|
||||||
{
|
{
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print_titre($langs->trans($title));
|
print_titre($langs->trans($title));
|
||||||
|
|
||||||
$selectList=$formproject->select_element($tablename);
|
$selectList=$formproject->select_element($tablename);
|
||||||
|
if ($selectList<0) {
|
||||||
|
setEventMessage($formproject->error,'errors');
|
||||||
|
}
|
||||||
|
|
||||||
if ($selectList)
|
if ($selectList)
|
||||||
{
|
{
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user