Selaa lähdekoodia

Merge pull request #20976 from atm-maxime/fix_scrutinizer1

Fix scrutinizer
Laurent Destailleur 3 vuotta sitten
vanhempi
commit
84f56a972b

+ 2 - 0
htdocs/core/modules/product/mod_codeproduct_elephant.php

@@ -145,6 +145,8 @@ class mod_codeproduct_elephant extends ModeleProductCode
 	 */
 	public function getExample($langs, $objproduct = 0, $type = -1)
 	{
+		$exampleproduct = $exampleservice = '';
+
 		if ($type == 0 || $type == -1) {
 			$exampleproduct = $this->getNextValue($objproduct, 0);
 			if (!$exampleproduct) {

+ 6 - 0
htdocs/modulebuilder/template/class/myobject.class.php

@@ -150,6 +150,12 @@ class MyObject extends CommonObject
 	 */
 	public $amount;
 
+	/**
+	 * @var int Thirdparty ID
+	 */
+	public $socid;		// both socid and fk_soc are used
+	public $fk_soc;		// both socid and fk_soc are used
+
 	/**
 	 * @var int Status
 	 */