Fix: Pb with firstname/lastname and font size
This commit is contained in:
parent
5cb2ba3909
commit
09317e2034
@ -107,7 +107,7 @@ class Contact extends CommonObject
|
||||
$this->db->begin();
|
||||
|
||||
// Clean parameters
|
||||
$this->lastname=$this->lastname?trim($this->lastname):$this->lastname;
|
||||
$this->lastname=$this->lastname?trim($this->lastname):trim($this->name);
|
||||
$this->firstname=trim($this->firstname);
|
||||
if (! empty($conf->global->MAIN_FIRST_TO_UPPER)) $this->lastname=ucwords($this->lastname);
|
||||
if (! empty($conf->global->MAIN_FIRST_TO_UPPER)) $this->firstname=ucwords($this->firstname);
|
||||
|
||||
@ -64,6 +64,7 @@ abstract class CommonObject
|
||||
{
|
||||
global $conf;
|
||||
|
||||
//print "lastname=".$this->lastname." name=".$this->name." nom=".$this->nom."<br>\n";
|
||||
$lastname=$this->lastname;
|
||||
$firstname=$this->firstname;
|
||||
if (empty($lastname)) $lastname=($this->lastname?$this->lastname:($this->name?$this->name:$this->nom));
|
||||
|
||||
@ -115,15 +115,15 @@ if (empty($reshook))
|
||||
{
|
||||
$object->particulier = GETPOST("private");
|
||||
|
||||
$object->name = empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)?GETPOST('firstname').' '.GETPOST('nom'):GETPOST('nom').' '.GETPOST('firstname');
|
||||
$object->name = dolGetFirstLastname(GETPOST('firstname'),GETPOST('nom')?GETPOST('nom'):GETPOST('name'));
|
||||
$object->civilite_id = GETPOST('civilite_id');
|
||||
// Add non official properties
|
||||
$object->name_bis = GETPOST('nom');
|
||||
$object->name_bis = GETPOST('name')?GETPOST('name'):GETPOST('nom');
|
||||
$object->firstname = GETPOST('firstname');
|
||||
}
|
||||
else
|
||||
{
|
||||
$object->name = GETPOST('nom');
|
||||
$object->name = GETPOST('name')?GETPOST('name'):GETPOST('nom');
|
||||
}
|
||||
$object->address = GETPOST('address');
|
||||
$object->zip = GETPOST('zipcode');
|
||||
@ -138,6 +138,8 @@ if (empty($reshook))
|
||||
$object->idprof2 = GETPOST('idprof2');
|
||||
$object->idprof3 = GETPOST('idprof3');
|
||||
$object->idprof4 = GETPOST('idprof4');
|
||||
$object->idprof5 = GETPOST('idprof5');
|
||||
$object->idprof6 = GETPOST('idprof6');
|
||||
$object->prefix_comm = GETPOST('prefix_comm');
|
||||
$object->code_client = GETPOST('code_client');
|
||||
$object->code_fournisseur = GETPOST('code_fournisseur');
|
||||
@ -602,6 +604,8 @@ else
|
||||
$object->idprof2 = GETPOST('idprof2');
|
||||
$object->idprof3 = GETPOST('idprof3');
|
||||
$object->idprof4 = GETPOST('idprof4');
|
||||
$object->idprof5 = GETPOST('idprof5');
|
||||
$object->idprof6 = GETPOST('idprof6');
|
||||
$object->typent_id = GETPOST('typent_id');
|
||||
$object->effectif_id = GETPOST('effectif_id');
|
||||
$object->civility_id = GETPOST('civilite_id');
|
||||
@ -1081,6 +1085,8 @@ else
|
||||
$object->idprof2 = GETPOST('idprof2');
|
||||
$object->idprof3 = GETPOST('idprof3');
|
||||
$object->idprof4 = GETPOST('idprof4');
|
||||
$object->idprof5 = GETPOST('idprof5');
|
||||
$object->idprof6 = GETPOST('idprof6');
|
||||
$object->typent_id = GETPOST('typent_id');
|
||||
$object->effectif_id = GETPOST('effectif_id');
|
||||
$object->barcode = GETPOST('barcode');
|
||||
|
||||
@ -196,7 +196,7 @@ body {
|
||||
background-color: <?php print $colorbackbody; ?>;
|
||||
<?php } ?>
|
||||
color:#232323;
|
||||
<?php if (empty($dol_use_jmobile)) { ?>
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size:<?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
font-family:<?php print $fontlist ?>;
|
||||
@ -2066,9 +2066,13 @@ li.ui-li-divider .ui-link {
|
||||
color: #FFF !important;
|
||||
}
|
||||
.ui-btn-inner {
|
||||
min-width: .4em;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
white-space: normal;
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
}
|
||||
.ui-select .ui-btn-icon-right .ui-btn-inner {
|
||||
padding-right: 36px;
|
||||
|
||||
@ -102,7 +102,7 @@ body {
|
||||
background: #ffffff url(<?php echo $img_head; ?>) 0 0 no-repeat;
|
||||
<?php } ?>
|
||||
color: #101010;
|
||||
<?php if (empty($dol_use_jmobile)) { ?>
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
font-family: <?php print $fontlist ?>;
|
||||
@ -2259,8 +2259,12 @@ a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-i
|
||||
}
|
||||
|
||||
.ui-btn-inner {
|
||||
min-width: .4em;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
/* white-space: normal; */ /* Warning, enable this break the truncate feature */
|
||||
}
|
||||
.ui-select .ui-btn-icon-right .ui-btn-inner {
|
||||
|
||||
@ -79,7 +79,7 @@ if (! empty($conf->global->MAIN_OVERWRITE_THEME_RES)) { $path='/'.$conf->global-
|
||||
body {
|
||||
/* background-color: #FFFFFF; */
|
||||
color: #101010;
|
||||
<?php if (empty($dol_use_jmobile)) { ?>
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
font-family: <?php print $fontlist ?>;
|
||||
|
||||
@ -83,7 +83,7 @@ body {
|
||||
/*background: #ffffff url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/headbg2.jpg',1); ?>) 0 0 no-repeat;*/
|
||||
<?php } ?>
|
||||
color: #101010;
|
||||
<?php if (empty($dol_use_jmobile)) { ?>
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
font-family: <?php print $fontlist ?>;
|
||||
@ -2304,8 +2304,12 @@ a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-i
|
||||
}
|
||||
|
||||
.ui-btn-inner {
|
||||
min-width: .4em;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
/* white-space: normal; */ /* Warning, enable this break the truncate feature */
|
||||
}
|
||||
.ui-select .ui-btn-icon-right .ui-btn-inner {
|
||||
|
||||
@ -216,7 +216,7 @@ body {
|
||||
background: <?php print $colorbackbody; ?>;
|
||||
<?php } ?>
|
||||
color: #101010;
|
||||
<?php if (empty($dol_use_jmobile)) { ?>
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
font-family: <?php print $fontlist ?>;
|
||||
@ -2622,17 +2622,27 @@ div.dolEventError h1, div.dolEventError h2 {
|
||||
li.ui-li-divider .ui-link {
|
||||
color: #FFF !important;
|
||||
}
|
||||
.ui-btn {
|
||||
margin: 0.2em 4px
|
||||
}
|
||||
a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.ui-btn-inner {
|
||||
min-width: .4em;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
<?php if (empty($dol_use_jmobile) || 1==1) { ?>
|
||||
font-size: <?php print $fontsize ?>px;
|
||||
<?php } ?>
|
||||
/* white-space: normal; */ /* Warning, enable this break the truncate feature */
|
||||
}
|
||||
.ui-btn-icon-right .ui-btn-inner {
|
||||
padding-right: 34px;
|
||||
}
|
||||
.ui-select .ui-btn-icon-right .ui-btn-inner {
|
||||
padding-right: 36px;
|
||||
padding-right: 38px;
|
||||
}
|
||||
.fiche .ui-controlgroup {
|
||||
margin: 0px;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user