Merge pull request #19005 from atm-florianm/FIX_13.0_typo_in_firstname
FIX 13.0: sometimes firstname was mistyped as fistname
This commit is contained in:
commit
039e0ba89e
@ -133,7 +133,7 @@ class ActionsDatapolicy
|
|||||||
header('Content-Disposition: attachment; filename=datapolicy_portabilite.csv');
|
header('Content-Disposition: attachment; filename=datapolicy_portabilite.csv');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
$object->fetch(GETPOST('socid'));
|
$object->fetch(GETPOST('socid'));
|
||||||
echo 'Name;Fistname;Civility;Thirdparty;Function;Address;ZipCode;City;Department;Country;Email;Pro Phone;Perso Phone;Mobile Phone;Instant Mail;Birthday;'.PHP_EOL;
|
echo 'Name;Firstname;Civility;Thirdparty;Function;Address;ZipCode;City;Department;Country;Email;Pro Phone;Perso Phone;Mobile Phone;Instant Mail;Birthday;'.PHP_EOL;
|
||||||
echo $object->name.';';
|
echo $object->name.';';
|
||||||
echo ';';
|
echo ';';
|
||||||
echo ';';
|
echo ';';
|
||||||
@ -157,7 +157,7 @@ class ActionsDatapolicy
|
|||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
$soc = $object->fetch_thirdparty();
|
$soc = $object->fetch_thirdparty();
|
||||||
|
|
||||||
echo 'Name;Fistname;Civility;Thirdparty;Function;Address;ZipCode;City;Department;Country;Email;Pro Phone;Perso Phone;Mobile Phone;Instant Mail;Birthday;'.PHP_EOL;
|
echo 'Name;Firstname;Civility;Thirdparty;Function;Address;ZipCode;City;Department;Country;Email;Pro Phone;Perso Phone;Mobile Phone;Instant Mail;Birthday;'.PHP_EOL;
|
||||||
echo $object->lastname.';';
|
echo $object->lastname.';';
|
||||||
echo $object->firstname.';';
|
echo $object->firstname.';';
|
||||||
echo $object->getCivilityLabel().';';
|
echo $object->getCivilityLabel().';';
|
||||||
@ -181,7 +181,7 @@ class ActionsDatapolicy
|
|||||||
header('Content-Disposition: attachment; filename=datapolicy_portabilite.csv');
|
header('Content-Disposition: attachment; filename=datapolicy_portabilite.csv');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
$soc = $object->fetch_thirdparty();
|
$soc = $object->fetch_thirdparty();
|
||||||
echo 'Name;Fistname;Civility;Thirdparty;Function;Address;ZipCode;City;Department;Country;Email;Pro Phone;Perso Phone;Mobile Phone;Instant Mail;Birthday;'.PHP_EOL;
|
echo 'Name;Firstname;Civility;Thirdparty;Function;Address;ZipCode;City;Department;Country;Email;Pro Phone;Perso Phone;Mobile Phone;Instant Mail;Birthday;'.PHP_EOL;
|
||||||
echo $object->lastname.';';
|
echo $object->lastname.';';
|
||||||
echo $object->firstname.';';
|
echo $object->firstname.';';
|
||||||
echo $object->getCivilityLabel().';';
|
echo $object->getCivilityLabel().';';
|
||||||
|
|||||||
@ -590,7 +590,7 @@ if ($ok && GETPOST('restore_user_pictures', 'alpha'))
|
|||||||
$filetotestsmall = $dolibarr_main_data_root.'/users/'.substr(sprintf('%08d', $obj->rowid), -1, 1).'/'.substr(sprintf('%08d', $obj->rowid), -2, 1).'/thumbs/'.$name.'_small'.$ext;
|
$filetotestsmall = $dolibarr_main_data_root.'/users/'.substr(sprintf('%08d', $obj->rowid), -1, 1).'/'.substr(sprintf('%08d', $obj->rowid), -2, 1).'/thumbs/'.$name.'_small'.$ext;
|
||||||
$filetotestmini = $dolibarr_main_data_root.'/users/'.substr(sprintf('%08d', $obj->rowid), -1, 1).'/'.substr(sprintf('%08d', $obj->rowid), -2, 1).'/thumbs/'.$name.'_mini'.$ext;
|
$filetotestmini = $dolibarr_main_data_root.'/users/'.substr(sprintf('%08d', $obj->rowid), -1, 1).'/'.substr(sprintf('%08d', $obj->rowid), -2, 1).'/thumbs/'.$name.'_mini'.$ext;
|
||||||
$exists = dol_is_file($filetotest);
|
$exists = dol_is_file($filetotest);
|
||||||
print 'Check user '.$obj->rowid.' lastname='.$obj->lastname.' fistname='.$obj->firstname.' photo='.$obj->photo.' file '.$filetotest." exists=".$exists."<br>\n";
|
print 'Check user '.$obj->rowid.' lastname='.$obj->lastname.' firstname='.$obj->firstname.' photo='.$obj->photo.' file '.$filetotest." exists=".$exists."<br>\n";
|
||||||
if ($exists)
|
if ($exists)
|
||||||
{
|
{
|
||||||
$filetarget = $dolibarr_main_data_root.'/users/'.$obj->rowid.'/'.$name.$ext;
|
$filetarget = $dolibarr_main_data_root.'/users/'.$obj->rowid.'/'.$name.$ext;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user