Skip to content

Commit

Permalink
Merge pull request #1265 from FHenry/3.4
Browse files Browse the repository at this point in the history
Fix bad display IE for checkbox extrafield readonly
  • Loading branch information
eldy committed Oct 27, 2013
2 parents d5d252d + 17df92c commit 686babd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/facture/class/facture.class.php
Expand Up @@ -1736,8 +1736,8 @@ function validate($user, $force_number='', $idwarehouse=0)
$sql.= " SET facnumber='".$num."', fk_statut = 1, fk_user_valid = ".$user->id.", date_valid = '".$this->db->idate($now)."'";
if (! empty($conf->global->FAC_FORCE_DATE_VALIDATION)) // If option enabled, we force invoice date
{
$sql.= ', datef='.$this->db->idate($this->date);
$sql.= ', date_lim_reglement='.$this->db->idate($this->date_lim_reglement);
$sql.= ", datef='".$this->db->idate($this->date)."'";
$sql.= ", date_lim_reglement='".$this->db->idate($this->date_lim_reglement)."'";
}
$sql.= ' WHERE rowid = '.$this->id;

Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/extrafields.class.php
Expand Up @@ -806,7 +806,7 @@ function showOutputField($key,$value,$moreparam='')
if (!empty($value)) {
$checked=' checked="checked" ';
}
$value='<input type="checkbox" '.$checked.' '.($moreparam?$moreparam:'').' readonly="readonly">';
$value='<input type="checkbox" '.$checked.' '.($moreparam?$moreparam:'').' readonly="readonly" disabled="disabled">';
}
elseif ($type == 'mail')
{
Expand Down
1 change: 1 addition & 0 deletions htdocs/webservices/admin/webservices.php
Expand Up @@ -102,6 +102,7 @@
$webservices = array(
'user' => '',
'thirdparty' => '!empty($conf->societe->enabled)',
'contact' => '!empty($conf->societe->enabled)',
'productorservice' => '(!empty($conf->product->enabled) || !empty($conf->service->enabled))',
'order' => '!empty($conf->commande->enabled)',
'invoice' => '!empty($conf->facture->enabled)',
Expand Down
8 changes: 5 additions & 3 deletions htdocs/webservices/server_contact.php
Expand Up @@ -300,7 +300,7 @@ function getContact($authentication,$id,$ref='',$ref_ext='')
'ref_propal' => $contact->ref_propal,
'user_id' => $contact->user_id,
'user_login' => $contact->user_login,
'civility_id' => $contact->civility_id
'civilite_id' => $contact->civility_id
);

//Retreive all extrafield for thirdsparty
Expand Down Expand Up @@ -379,7 +379,7 @@ function createContact($authentication,$contact)
$newobject=new Contact($db);

$newobject->id=$contact['id'];
$newobject->civility_id=$contact['civility_id'];
$newobject->civilite_id=$contact['civility_id'];
$newobject->lastname=$contact['lastname'];
$newobject->firstname=$contact['firstname'];
$newobject->address=$contact['address'];
Expand Down Expand Up @@ -522,7 +522,7 @@ function getContactsForThirdParty($authentication,$idthirdparty)
$linescontact[]=array(
'id' => $contact->id,
'ref' => $contact->ref,
'civility_id' => $contact->civility_id?$contact->civility_id:'',
'civility_id' => $contact->civilite_id?$contact->civilite_id:'',
'lastname' => $contact->lastname?$contact->lastname:'',
'firstname' => $contact->firstname?$contact->firstname:'',
'address' => $contact->address?$contact->address:'',
Expand Down Expand Up @@ -653,6 +653,8 @@ function updateContact($authentication,$contact)
$object->fax=$contact['fax'];
$object->email=$contact['email'];

$object->civilite_id=$contact['civility_id'];


//Retreive all extrafield for contact
// fetch optionals attributes and labels
Expand Down

0 comments on commit 686babd

Please sign in to comment.