diff --git a/htdocs/accountancy/bookkeeping/balance.php b/htdocs/accountancy/bookkeeping/balance.php
index de60bd09897..b1ae1049b5a 100644
--- a/htdocs/accountancy/bookkeeping/balance.php
+++ b/htdocs/accountancy/bookkeeping/balance.php
@@ -159,11 +159,11 @@ if ($action == 'export_csv')
foreach ($object->lines as $line)
{
- print length_accountg($line->numero_compte).$sep;
- print $object->get_compte_desc($line->numero_compte).$sep;
- print price($line->debit).$sep;
- print price($line->credit).$sep;
- print price($line->debit - $line->credit).$sep;
+ print '"'.length_accountg($line->numero_compte).'"'.$sep;
+ print '"'.$object->get_compte_desc($line->numero_compte).'"'.$sep;
+ print '"'.price($line->debit).'"'.$sep;
+ print '"'.price($line->credit).'"'.$sep;
+ print '"'.price($line->debit - $line->credit).'"'.$sep;
print "\n";
}
diff --git a/htdocs/admin/translation.php b/htdocs/admin/translation.php
index c31f1c07093..367a011bfee 100644
--- a/htdocs/admin/translation.php
+++ b/htdocs/admin/translation.php
@@ -187,7 +187,7 @@ if ($action == 'delete')
$form = new Form($db);
$formadmin = new FormAdmin($db);
-$wikihelp = 'EN:Setup Translation|FR:Paramétrage traduction|ES:Configuración';
+$wikihelp = 'EN:Setup_Translation|FR:Paramétrage_Traduction|ES:Configuración_Traducción';
llxHeader('', $langs->trans("Setup"), $wikihelp);
$param = '&mode='.urlencode($mode);
diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php
index fe3f4a76d96..f9346f934bb 100644
--- a/htdocs/comm/mailing/cibles.php
+++ b/htdocs/comm/mailing/cibles.php
@@ -66,6 +66,8 @@ $modulesdir = dolGetModulesDirs('/mailings');
$object = new Mailing($db);
$result = $object->fetch($id);
+// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
+$hookmanager->initHooks(array('ciblescard', 'globalcard'));
/*
* Actions
@@ -453,6 +455,10 @@ if ($object->fetch($id) >= 0)
}
} // End foreach dir
+ $parameters = array();
+ $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
+ print $hookmanager->resPrint;
+
print '';
print '
';
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index f9c537aea2f..bd56a956698 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -244,6 +244,8 @@ if ($search_email) $sql .= natural_search('s.email', $search_email);
if ($search_contract) $sql .= natural_search(array('c.rowid', 'c.ref'), $search_contract);
if (!empty($search_ref_customer)) $sql .= natural_search(array('c.ref_customer'), $search_ref_customer);
if (!empty($search_ref_supplier)) $sql .= natural_search(array('c.ref_supplier'), $search_ref_supplier);
+if ($search_zip) $sql .= natural_search(array('s.zip'), $search_zip);
+if ($search_town) $sql .= natural_search(array('s.town'), $search_town);
if ($search_sale > 0)
{
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".$search_sale;
diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php
index 8367e04ef10..d27433522df 100644
--- a/htdocs/fourn/commande/card.php
+++ b/htdocs/fourn/commande/card.php
@@ -1260,6 +1260,8 @@ if (empty($reshook))
$tva_tx = get_default_tva($soc, $mysoc, $lines[$i]->fk_product, $product_fourn_price_id);
}
+ $object->special_code = $lines[$i]->special_code;
+
$result = $object->addline(
$desc,
$lines[$i]->subprice,