diff --git a/ChangeLog b/ChangeLog index 374ee7a91fd..d04f080d368 100644 --- a/ChangeLog +++ b/ChangeLog @@ -91,11 +91,11 @@ Fix: Enable extrafields for customer order, proposal and invoice lines. This fea Fix: user right on Holiday for month report nor working. Fix: [ bug #1250 ] "Supplier Ref. product" sidebar search box does not work Fix: Bad space in predefined messages. -Fix: Signature was not added for email sent from thirdparty page. +Fix: [ bug #1256 ] Signature was not added for email sent from thirdparty page. Fix: Action event SHIPPING_VALIDATE is not implemented Fix: The customer code was set to uppercase when using numbering module leopard. We must keep data safe of any change. -Fix: Loading actions extrafields fails. +Fix: [ bug #1291 ] Loading actions extrafields fails. Fix: [ bug #1123 ] Paid deposit invoices are always shown as partially paid when fully paid Fix: Corrected project contact types translation. Fix: [ bug #1206 ] PMP price is bad calculated. @@ -103,6 +103,7 @@ Fix: [ bug #520 ] Product statistics and detailed lists are wrong. Fix: [ bug #1240 ] traduction. Fix: [ bug #1238 ] When creating accompte with a %, free product are used for calculation. Fix: [ bug #1280 ] service with not end of date was tagged as expired. +Fix: [ bug #1295 ] Error when creating an agenda extrafield with a number as reference ***** ChangeLog for 3.5 compared to 3.4.* ***** For users: diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php index 9ca99f8634b..972858a808f 100644 --- a/htdocs/comm/action/document.php +++ b/htdocs/comm/action/document.php @@ -261,7 +261,7 @@ if ($object->id > 0) } else { - print $langs->trans("UnkownError"); + print $langs->trans("ErrorUnknown"); } $db->close(); diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 50bc205d9f5..d3766ae27ce 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -137,7 +137,7 @@ if ($object->id > 0) } else { - print $langs->trans("UnkownError"); + print $langs->trans("ErrorUnknown"); } llxFooter(); diff --git a/htdocs/compta/deplacement/document.php b/htdocs/compta/deplacement/document.php index 4c44fffa6e5..fb9df1fcb37 100644 --- a/htdocs/compta/deplacement/document.php +++ b/htdocs/compta/deplacement/document.php @@ -128,7 +128,7 @@ if ($object->id) } else { - print $langs->trans("UnkownError"); + print $langs->trans("ErrorUnknown"); } llxFooter(); diff --git a/htdocs/compta/facture/document.php b/htdocs/compta/facture/document.php index cc16e5dcf77..1eb5909544b 100644 --- a/htdocs/compta/facture/document.php +++ b/htdocs/compta/facture/document.php @@ -160,7 +160,7 @@ if ($id > 0 || ! empty($ref)) } else { - print $langs->trans("UnkownError"); + print $langs->trans("ErrorUnknown"); } $db->close(); diff --git a/htdocs/compta/sociales/document.php b/htdocs/compta/sociales/document.php index 2e86a7a6986..88c888de62e 100644 --- a/htdocs/compta/sociales/document.php +++ b/htdocs/compta/sociales/document.php @@ -167,7 +167,7 @@ if ($object->id) } else { - print $langs->trans("UnkownError"); + print $langs->trans("ErrorUnknown"); } diff --git a/htdocs/contrat/document.php b/htdocs/contrat/document.php index c29d3b3186c..ea951f85941 100644 --- a/htdocs/contrat/document.php +++ b/htdocs/contrat/document.php @@ -130,7 +130,7 @@ if ($object->id) } else { - print $langs->trans("UnkownError"); + print $langs->trans("ErrorUnknown"); } diff --git a/htdocs/core/db/mysql.class.php b/htdocs/core/db/mysql.class.php index a0507072056..46b16113a26 100644 --- a/htdocs/core/db/mysql.class.php +++ b/htdocs/core/db/mysql.class.php @@ -957,7 +957,7 @@ class DoliDBMysql extends DoliDB { // cles recherchees dans le tableau des descriptions (field_desc) : type,value,attribute,null,default,extra // ex. : $field_desc = array('type'=>'int','value'=>'11','null'=>'not null','extra'=> 'auto_increment'); - $sql= "ALTER TABLE ".$table." ADD ".$field_name." "; + $sql= "ALTER TABLE ".$table." ADD `".$field_name."` "; $sql.= $field_desc['type']; if(preg_match("/^[^\s]/i",$field_desc['value'])) if (! in_array($field_desc['type'],array('date','datetime'))) diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 5993e31dbd1..ece1ff86532 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -960,7 +960,7 @@ class DoliDBMysqli extends DoliDB { // cles recherchees dans le tableau des descriptions (field_desc) : type,value,attribute,null,default,extra // ex. : $field_desc = array('type'=>'int','value'=>'11','null'=>'not null','extra'=> 'auto_increment'); - $sql= "ALTER TABLE ".$table." ADD ".$field_name." "; + $sql= "ALTER TABLE ".$table." ADD `".$field_name."` "; $sql.= $field_desc['type']; if(preg_match("/^[^\s]/i",$field_desc['value'])) if (! in_array($field_desc['type'],array('date','datetime'))) diff --git a/htdocs/core/lib/ajax.lib.php b/htdocs/core/lib/ajax.lib.php index be110669844..72592b1e68f 100644 --- a/htdocs/core/lib/ajax.lib.php +++ b/htdocs/core/lib/ajax.lib.php @@ -390,7 +390,7 @@ function ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0) $out= "\n".'