Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
9d7dcf6f72
@ -186,6 +186,12 @@ abstract class CommonObject
|
||||
*/
|
||||
public $projet;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @see fk_project
|
||||
*/
|
||||
public $fk_projet;
|
||||
|
||||
/**
|
||||
* @var Contact a related contact
|
||||
* @see fetch_contact()
|
||||
|
||||
@ -300,13 +300,13 @@ class Validate
|
||||
/**
|
||||
* Check for all values in db
|
||||
*
|
||||
* @param array $values Boolean to validate
|
||||
* @param integer $id of element
|
||||
* @param string $classname the class name
|
||||
* @param string $classpath the class path
|
||||
* @return boolean Validity is ok or not
|
||||
* @throws Exception
|
||||
*/
|
||||
public function isFetchable($values, $classname, $classpath)
|
||||
public function isFetchable($id, $classname, $classpath)
|
||||
{
|
||||
if (!empty($classpath)) {
|
||||
if (dol_include_once($classpath)) {
|
||||
@ -319,7 +319,7 @@ class Validate
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!empty($object->table_element) && $object->isExistingObject($object->table_element, $values)) {
|
||||
if (!empty($object->table_element) && $object->isExistingObject($object->table_element, $id)) {
|
||||
return true;
|
||||
} else { $this->error = $this->outputLang->trans('RequireValidExistingElement'); }
|
||||
} else { $this->error = $this->outputLang->trans('BadSetupOfFieldClassNotFoundForValidation'); }
|
||||
|
||||
@ -106,6 +106,8 @@ class Delivery extends CommonObject
|
||||
*/
|
||||
public $model_pdf;
|
||||
|
||||
public $commande_id;
|
||||
|
||||
public $lines = array();
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user