Merge remote-tracking branch 'origin/3.8' into develop

This commit is contained in:
Laurent Destailleur 2015-09-17 19:52:13 +02:00
commit 27b1f2ecc6
3 changed files with 8 additions and 8 deletions

View File

@ -277,7 +277,7 @@ help=!(Port > 0);
Usage:
if (help) {
printf("----- %s V%s (c)Laurent Destailleur -----\n",PROG,VERSION);
printf("%s is a software that allows you to know if a TCP/IP port is used\n",PROG);
printf("%s is software that allows you to know if a TCP/IP port is used\n",PROG);
printf("%s sources can be compiled for WIN32 (VC++, GCC CYGWIN, MINGW) or for\n");
printf("Unix/Linux (GCC)\n",PROG);
printf("\n");

View File

@ -3016,7 +3016,7 @@ class Form
global $langs;
$langs->load("categories");
include_once DOL_DOCUMENT_ROOT.'/categories/class.categorie.class.php';
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$cat = new Categorie($this->db);
$cate_arbo = $cat->get_full_arbo($type,$excludeafterid);
@ -4677,7 +4677,7 @@ class Form
{
global $db;
include_once DOL_DOCUMENT_ROOT.'/categories/class.categorie.class.php';
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$cat = new Categorie($db);
$categories = $cat->containing($id, $type);

View File

@ -278,7 +278,7 @@ if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
{
$editgroup = new UserGroup($db);
$editgroup->fetch($group);
$editgroup->oldcopy=dol_clone($editgroup);
$editgroup->oldcopy=clone($editgroup);
$object->fetch($id);
if ($action == 'addgroup') $object->SetInGroup($group,($conf->multicompany->transverse_mode?GETPOST("entity"):$editgroup->entity));
@ -340,7 +340,7 @@ if ($action == 'update' && ! $_POST["cancel"])
{
$db->begin();
$object->oldcopy=dol_clone($object);
$object->oldcopy=clone($object);
$object->lastname = GETPOST("lastname",'alpha');
$object->firstname = GETPOST("firstname",'alpha');
@ -508,7 +508,7 @@ if ($action == 'update' && ! $_POST["cancel"])
{
$object->fetch($id);
$object->oldcopy=dol_clone($object);
$object->oldcopy=clone($object);
$ret=$object->setPassword($user,$_POST["password"]);
if ($ret < 0)
@ -1046,7 +1046,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
{
print '<tr><td>'.$langs->trans("ColorUser").'</td>';
print '<td>';
print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', 'usercolorconfig', 1, '', 'hideifnotset');
print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', null, 1, '', 'hideifnotset');
print '</td></tr>';
}
@ -2151,7 +2151,7 @@ else
{
print '<tr><td>'.$langs->trans("ColorUser").'</td>';
print '<td>';
print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', 'usercolorconfig', 1, '', 'hideifnotset');
print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', null, 1, '', 'hideifnotset');
print '</td></tr>';
}