Fix: Data are always encoded in UTF8 in Dolibarr memory, so we must not use ut8_encode on this->property variables or we encode it twice (remove of utf8_encode call was forgotten in 2.6 for contacts).
This commit is contained in:
parent
b1bb20c1bf
commit
9735c0c770
@ -142,13 +142,13 @@ if ($_POST["action"] == 'add_action')
|
||||
{
|
||||
if ($_POST["actioncode"] == 'AC_RDV' && $contact->getFullName($langs))
|
||||
{
|
||||
$actioncomm->label = $langs->transnoentities("TaskRDVWith",$contact->getFullName($langs));
|
||||
$actioncomm->label = $langs->transnoentitiesnoconv("TaskRDVWith",$contact->getFullName($langs));
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($langs->trans("Action".$actioncomm->type_code) != "Action".$actioncomm->type_code)
|
||||
{
|
||||
$actioncomm->label = $langs->transnoentities("Action".$actioncomm->type_code)."\n";
|
||||
$actioncomm->label = $langs->transnoentitiesnoconv("Action".$actioncomm->type_code)."\n";
|
||||
}
|
||||
else $actioncomm->label = $cactioncomm->libelle;
|
||||
}
|
||||
@ -207,7 +207,7 @@ if ($_POST["action"] == 'add_action')
|
||||
{
|
||||
$error=1;
|
||||
$_GET["action"] = 'create';
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentities("DateEnd")).'</div>';
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("DateEnd")).'</div>';
|
||||
}
|
||||
if ($datea && $_POST["percentage"] == 0)
|
||||
{
|
||||
@ -220,7 +220,7 @@ if ($_POST["action"] == 'add_action')
|
||||
{
|
||||
$error=1;
|
||||
$_GET["action"] = 'create';
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->trans("Date")).'</div>';
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Date")).'</div>';
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1563,12 +1563,12 @@ class User extends CommonObject
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* \brief Retourne chaine DN complete dans l'annuaire LDAP pour l'objet
|
||||
* \param info Info string loaded by _load_ldap_info
|
||||
* \param mode 0=Return DN without key inside (ou=xxx,dc=aaa,dc=bbb)
|
||||
1=Return full DN (uid=qqq,ou=xxx,dc=aaa,dc=bbb)
|
||||
2=Return key only (uid=qqq)
|
||||
* 1=Return full DN (uid=qqq,ou=xxx,dc=aaa,dc=bbb)
|
||||
* 2=Return key only (uid=qqq)
|
||||
* \return string DN
|
||||
*/
|
||||
function _load_ldap_dn($info,$mode=0)
|
||||
@ -1582,7 +1582,7 @@ class User extends CommonObject
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* \brief Initialise tableau info (tableau des attributs LDAP)
|
||||
* \return array Tableau info des attributs
|
||||
*/
|
||||
|
||||
@ -522,12 +522,12 @@ class UserGroup extends CommonObject
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* \brief Retourne chaine DN complete dans l'annuaire LDAP pour l'objet
|
||||
* \param info Info string loaded by _load_ldap_info
|
||||
* \param mode 0=Return DN without key inside (ou=xxx,dc=aaa,dc=bbb)
|
||||
1=Return full DN (uid=qqq,ou=xxx,dc=aaa,dc=bbb)
|
||||
2=Return key only (uid=qqq)
|
||||
* 1=Return full DN (uid=qqq,ou=xxx,dc=aaa,dc=bbb)
|
||||
* 2=Return key only (uid=qqq)
|
||||
* \return string DN
|
||||
*/
|
||||
function _load_ldap_dn($info,$mode=0)
|
||||
@ -541,7 +541,7 @@ class UserGroup extends CommonObject
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* \brief Initialise tableau info (tableau des attributs LDAP)
|
||||
* \return array Tableau info des attributs
|
||||
*/
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2006-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -15,16 +15,14 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file scripts/company/sync_contacts_dolibarr2ldap.php
|
||||
\ingroup ldap company
|
||||
\brief Script de mise a jour des contacts dans LDAP depuis base Dolibarr
|
||||
*/
|
||||
* \file scripts/company/sync_contacts_dolibarr2ldap.php
|
||||
* \ingroup ldap company
|
||||
* \brief Script to update all contacts from Dolibarr into a LDAP database
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
// Test si mode CLI
|
||||
$sapi_type = php_sapi_name();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user