Skip to content

Commit

Permalink
Update fournisseur.commande.class.php
Browse files Browse the repository at this point in the history
missing code for extrafields
  • Loading branch information
grandoc committed Jul 31, 2014
1 parent 61ff1d2 commit 5aea97a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion htdocs/fourn/class/fournisseur.commande.class.php
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
* Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010-2013 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2010-2014 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
Expand Down Expand Up @@ -191,6 +191,13 @@ function fetch($id,$ref='')
$this->extraparams = (array) json_decode($obj->extraparams, true);

$this->db->free($resql);

// Retreive all extrafield
// fetch optionals attributes and labels
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
$extrafields=new ExtraFields($this->db);
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
$this->fetch_optionals($this->id,$extralabels);

if ($this->statut == 0) $this->brouillon = 1;

Expand Down

0 comments on commit 5aea97a

Please sign in to comment.