Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Sep 2, 2014
2 parents f245f43 + cc858b2 commit 4fdfe05
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 33 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Expand Up @@ -102,6 +102,8 @@ For users:
- Fix: debian script syntax error
- Fix: error "menu param is not inside list" into pos module.
- Fix: Salary payments are not reflected on the reporting sheets
- Fix: Unsubscribe emailing not working
- Fix: Trigger on create category call failed because user is not passed on card

***** ChangeLog for 3.6 compared to 3.5.* *****
For users:
Expand Down
4 changes: 2 additions & 2 deletions htdocs/admin/limits.php
Expand Up @@ -204,9 +204,9 @@
// Add vat rates examples specific to country
$vat_rates=array();

$sql.="SELECT taux as vat_rate";
$sql="SELECT taux as vat_rate";
$sql.=" FROM ".MAIN_DB_PREFIX."c_tva as t, ".MAIN_DB_PREFIX."c_country as c";
$sql.=" WHERE t.active=1 AND t.fk_pays = c.rowid AND c.code='".$mysoc->country_code."' AND taux != 0";
$sql.=" WHERE t.active=1 AND t.fk_pays = c.rowid AND c.code='".$mysoc->country_code."' AND taux <> 0";
$sql.=" ORDER BY t.taux ASC";
$resql=$db->query($sql);
if ($resql)
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/admin.lib.php
Expand Up @@ -508,7 +508,7 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
/**
* Prepare array with list of tabs
*
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function security_prepare_head()
{
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/lib/agenda.lib.php
Expand Up @@ -360,7 +360,7 @@ function show_array_last_actions_done($max=5)
/**
* Prepare array with list of tabs
*
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function agenda_prepare_head()
{
Expand Down Expand Up @@ -405,7 +405,7 @@ function agenda_prepare_head()
* Prepare array with list of tabs
*
* @param object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function actions_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/bank.lib.php
Expand Up @@ -28,7 +28,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function bank_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/categories.lib.php
Expand Up @@ -27,7 +27,7 @@
*
* @param Object $object Object related to tabs
* @param string $type Type of category
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function categories_prepare_head($object,$type)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/contact.lib.php
Expand Up @@ -26,7 +26,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function contact_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/contract.lib.php
Expand Up @@ -26,7 +26,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function contract_prepare_head($object)
{
Expand Down
8 changes: 4 additions & 4 deletions htdocs/core/lib/ecm.lib.php
Expand Up @@ -27,7 +27,7 @@
* Prepare array with list of different ecm main dashboard
*
* @param object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function ecm_prepare_dasboard_head($object)
{
Expand Down Expand Up @@ -64,7 +64,7 @@ function ecm_prepare_dasboard_head($object)
* Prepare array with list of tabs
*
* @param object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function ecm_prepare_head($object)
{
Expand All @@ -84,7 +84,7 @@ function ecm_prepare_head($object)
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function ecm_file_prepare_head($object)
{
Expand All @@ -104,7 +104,7 @@ function ecm_file_prepare_head($object)
* Prepare array with list of tabs
*
* @param object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function ecm_prepare_head_fm($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/emailing.lib.php
Expand Up @@ -25,7 +25,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function emailing_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/fichinter.lib.php
Expand Up @@ -28,7 +28,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function fichinter_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/fiscalyear.lib.php
Expand Up @@ -25,7 +25,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function fiscalyear_prepare_head($object)
{
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/lib/fourn.lib.php
Expand Up @@ -29,7 +29,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function facturefourn_prepare_head($object)
{
Expand Down Expand Up @@ -92,7 +92,7 @@ function facturefourn_prepare_head($object)
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function ordersupplier_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/order.lib.php
Expand Up @@ -29,7 +29,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function commande_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/prelevement.lib.php
Expand Up @@ -29,7 +29,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function prelevement_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/product.lib.php
Expand Up @@ -29,7 +29,7 @@
*
* @param Object $object Object related to tabs
* @param User $user Object user
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function product_prepare_head($object, $user)
{
Expand Down
6 changes: 3 additions & 3 deletions htdocs/core/lib/project.lib.php
Expand Up @@ -30,7 +30,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function project_prepare_head($object)
{
Expand Down Expand Up @@ -113,7 +113,7 @@ function project_prepare_head($object)
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function task_prepare_head($object)
{
Expand Down Expand Up @@ -170,7 +170,7 @@ function task_prepare_head($object)
/**
* Prepare array with list of tabs
*
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function project_admin_prepare_head()
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/propal.lib.php
Expand Up @@ -27,7 +27,7 @@
* Prepare array with list of tabs
*
* @param object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function propal_prepare_head($object)
{
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/lib/sendings.lib.php
Expand Up @@ -29,7 +29,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function shipping_prepare_head($object)
{
Expand Down Expand Up @@ -85,7 +85,7 @@ function shipping_prepare_head($object)
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function delivery_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/stock.lib.php
Expand Up @@ -25,7 +25,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function stock_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/tax.lib.php
Expand Up @@ -29,7 +29,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function tax_prepare_head($object)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/trip.lib.php
Expand Up @@ -25,7 +25,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function trip_prepare_head($object)
{
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/lib/usergroups.lib.php
Expand Up @@ -27,7 +27,7 @@
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function user_prepare_head($object)
{
Expand Down Expand Up @@ -178,7 +178,7 @@ function group_prepare_head($object)
/**
* Prepare array with list of tabs
*
* @return array Array of tabs to shoc
* @return array Array of tabs to show
*/
function user_admin_prepare_head()
{
Expand Down
3 changes: 2 additions & 1 deletion htdocs/public/emailing/mailing-unsubscribe.php
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -85,7 +86,7 @@ function llxFooter() { }
$resql=$db->query($sql);

//Update status communication of contact prospect
$sql = "UPDATE ".MAIN_DB_PREFIX."socpeople SET no_email=1 WHERE rowid IN (SELECT rowid FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.tag = '".$db->escape($tag)."' AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
$sql = "UPDATE ".MAIN_DB_PREFIX."socpeople SET no_email=1 WHERE rowid IN (SELECT sc.rowid FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.tag = '".$db->escape($tag)."' AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
dol_syslog("public/emailing/mailing-unsubscribe.php : Mail unsubcribe contact : ".$sql, LOG_DEBUG);

$resql=$db->query($sql);
Expand Down

0 comments on commit 4fdfe05

Please sign in to comment.