Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 7.0

Conflicts:
	htdocs/core/class/html.form.class.php
This commit is contained in:
Laurent Destailleur 2018-07-03 10:01:30 +02:00
commit 0138b0e0b7
4 changed files with 10 additions and 10 deletions

View File

@ -288,7 +288,7 @@ class Form
$out=''; $out='';
// Check parameters // Check parameters
if ($inputType == 'textarea') $value = dol_nl2br($value); if (preg_match('/^text/',$inputType)) $value = dol_nl2br($value);
else if (preg_match('/^numeric/',$inputType)) $value = price($value); else if (preg_match('/^numeric/',$inputType)) $value = price($value);
else if ($inputType == 'day' || $inputType == 'datepicker') $value = dol_print_date($value, 'day'); else if ($inputType == 'day' || $inputType == 'datepicker') $value = dol_print_date($value, 'day');

View File

@ -71,7 +71,7 @@ elseif ($module == 'shipping') { $permission=$user->rights->expedition->cr
elseif ($module == 'product') { $permission=$user->rights->produit->creer;} elseif ($module == 'product') { $permission=$user->rights->produit->creer;}
//else dol_print_error('','Bad value '.$module.' for param module'); //else dol_print_error('','Bad value '.$module.' for param module');
if (! empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $typeofdata='ckeditor:dolibarr_notes:100%:200::1:12:95%'; // Rem: This var is for all notes, not only thirdparties note. if (! empty($conf->fckeditor->enabled) && ! empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $typeofdata='ckeditor:dolibarr_notes:100%:200::1:12:95%'; // Rem: This var is for all notes, not only thirdparties note.
else $typeofdata='textarea:12:95%'; else $typeofdata='textarea:12:95%';
print '<!-- BEGIN PHP TEMPLATE NOTES -->'."\n"; print '<!-- BEGIN PHP TEMPLATE NOTES -->'."\n";

View File

@ -47,16 +47,16 @@ $main_data_dir = GETPOST('main_data_dir') ? GETPOST('main_data_dir') : $main_dir
// Dolibarr root URL // Dolibarr root URL
$main_url = GETPOST('main_url'); $main_url = GETPOST('main_url');
// Database login informations // Database login informations
$userroot=GETPOST('db_user_root'); $userroot=GETPOST('db_user_root','alpha');
$passroot=GETPOST('db_pass_root'); $passroot=GETPOST('db_pass_root','none');
// Database server // Database server
$db_type=GETPOST('db_type','alpha'); $db_type=GETPOST('db_type','aZ09');
$db_host=GETPOST('db_host','alpha'); $db_host=GETPOST('db_host','alpha');
$db_name=GETPOST('db_name','alpha'); $db_name=GETPOST('db_name','aZ09');
$db_user=GETPOST('db_user','alpha'); $db_user=GETPOST('db_user','alpha');
$db_pass=GETPOST('db_pass'); $db_pass=GETPOST('db_pass','none');
$db_port=GETPOST('db_port','int'); $db_port=GETPOST('db_port','int');
$db_prefix=GETPOST('db_prefix','alpha'); $db_prefix=GETPOST('db_prefix','aZ09');
$db_create_database = GETPOST('db_create_database','none'); $db_create_database = GETPOST('db_create_database','none');
$db_create_user = GETPOST('db_create_user','none'); $db_create_user = GETPOST('db_create_user','none');
// Force https // Force https

View File

@ -1715,7 +1715,7 @@ class Project extends CommonObject
// For external user, no check is done on company permission because readability is managed by public status of project and assignement. // For external user, no check is done on company permission because readability is managed by public status of project and assignement.
//if (! $user->rights->societe->client->voir && ! $socid) $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON sc.fk_soc = s.rowid"; //if (! $user->rights->societe->client->voir && ! $socid) $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON sc.fk_soc = s.rowid";
$sql.= " WHERE p.fk_statut = 1"; $sql.= " WHERE p.fk_statut = 1";
$sql.= " AND p.entity IN (".getEntity('project', 0).')'; $sql.= " AND p.entity IN (".getEntity('project').')';
if (! $user->rights->projet->all->lire) $sql.= " AND p.rowid IN (".$projectsListId.")"; if (! $user->rights->projet->all->lire) $sql.= " AND p.rowid IN (".$projectsListId.")";
// No need to check company, as filtering of projects must be done by getProjectsAuthorizedForUser // No need to check company, as filtering of projects must be done by getProjectsAuthorizedForUser
//if ($socid || ! $user->rights->societe->client->voir) $sql.= " AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = ".$socid.")"; //if ($socid || ! $user->rights->societe->client->voir) $sql.= " AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = ".$socid.")";
@ -1791,7 +1791,7 @@ class Project extends CommonObject
$sql = "SELECT count(p.rowid) as nb"; $sql = "SELECT count(p.rowid) as nb";
$sql.= " FROM ".MAIN_DB_PREFIX."projet as p"; $sql.= " FROM ".MAIN_DB_PREFIX."projet as p";
$sql.= " WHERE"; $sql.= " WHERE";
$sql.= " p.entity IN (".getEntity('projet').")"; $sql.= " p.entity IN (".getEntity('project').")";
if (! $user->rights->projet->all->lire) if (! $user->rights->projet->all->lire)
{ {
$projectsListId = $this->getProjectsAuthorizedForUser($user,0,1); $projectsListId = $this->getProjectsAuthorizedForUser($user,0,1);