diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php
index 301664fab83..d0f8206f269 100644
--- a/htdocs/adherents/cotisations.php
+++ b/htdocs/adherents/cotisations.php
@@ -128,7 +128,9 @@ if ($result)
if (! empty($date_select)) $title.=' ('.$langs->trans("Year").' '.$date_select.')';
$param='';
- $param.="&statut=$statut&date_select=$date_select";
+ if ($statut != '') $param.="&statut=".$statut;
+ if ($date_select) $param.="&date_select=".$date_select;
+ if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
if ($search_lastname) $param.="&search_lastname=".$search_lastname;
if ($search_login) $param.="&search_login=".$search_login;
if ($search_acount) $param.="&search_account=".$search_account;
@@ -214,7 +216,7 @@ if ($result)
$var=true;
$total=0;
- while ($i < $num && $i < $conf->liste_limit)
+ while ($i < min($num, $limit))
{
$objp = $db->fetch_object($result);
$total+=$objp->cotisation;
diff --git a/htdocs/admin/menus/index.php b/htdocs/admin/menus/index.php
index 7da0673b196..28d8d353905 100644
--- a/htdocs/admin/menus/index.php
+++ b/htdocs/admin/menus/index.php
@@ -262,7 +262,7 @@ print '';
print '
';
-print '
| '.$langs->trans("TreeMenuPersonalized").' | '; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f4b8bfc610c..697e5e8bdeb 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4205,7 +4205,7 @@ class Form $code_country="'".$societe_vendeuse->country_code."'"; } else - { + { $code_country="'".$mysoc->country_code."'"; // Pour compatibilite ascendente } if (! empty($conf->global->SERVICE_ARE_ECOMMERCE_200238EC)) // If option to have vat for end customer for services is on @@ -4243,8 +4243,9 @@ class Form // Definition du taux a pre-selectionner (si defaulttx non force et donc vaut -1 ou '') if ($defaulttx < 0 || dol_strlen($defaulttx) == 0) { - $defaulttx=get_default_tva($societe_vendeuse,$societe_acheteuse,$idprod); - $defaultnpr=get_default_npr($societe_vendeuse,$societe_acheteuse,$idprod); + $tmpthirdparty=new Societe($this->db); + $defaulttx=get_default_tva($societe_vendeuse, (is_object($societe_acheteuse)?$societe_acheteuse:$tmpthirdparty), $idprod); + $defaultnpr=get_default_npr($societe_vendeuse, (is_object($societe_acheteuse)?$societe_acheteuse:$tmpthirdparty), $idprod); if (empty($defaulttx)) $defaultnpr=0; } diff --git a/htdocs/install/mysql/tables/llx_website_pages.sql b/htdocs/install/mysql/tables/llx_website_pages.sql index 379fa08582e..28f0c870dea 100644 --- a/htdocs/install/mysql/tables/llx_website_pages.sql +++ b/htdocs/install/mysql/tables/llx_website_pages.sql @@ -20,7 +20,7 @@ CREATE TABLE llx_website_page ( rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY, - fk_website integer, + fk_website integer NOT NULL, pageurl varchar(16) NOT NULL, title varchar(255), description varchar(255), diff --git a/htdocs/product/admin/product_tools.php b/htdocs/product/admin/product_tools.php index 0d3ea7584f1..55f54d10613 100644 --- a/htdocs/product/admin/product_tools.php +++ b/htdocs/product/admin/product_tools.php @@ -275,7 +275,7 @@ else print '|
| '.$langs->trans("OldVATRates").' | '."\n"; print ''."\n"; - print $form->load_tva('oldvatrate', $oldvatrate); + print $form->load_tva('oldvatrate', $oldvatrate, $mysoc); print ' | '."\n"; print '
| '.$langs->trans("NewVATRates").' | '."\n"; print ''."\n"; - print $form->load_tva('newvatrate', $newvatrate); + print $form->load_tva('newvatrate', $newvatrate, $mysoc); print ' | '."\n"; print '