Browse Source

Fix scrutinizer

Laurent Destailleur 3 years ago
parent
commit
6d848edba7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/comm/propal/class/api_proposals.class.php

+ 1 - 1
htdocs/comm/propal/class/api_proposals.class.php

@@ -645,7 +645,7 @@ class Proposals extends DolibarrApi
 			throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
 		}
 
-		$contacts = $this->invoice->liste_contact();
+		$contacts = $this->propal->liste_contact();
 
 		foreach ($contacts as $contact) {
 			if ($contact['id'] == $contactid && $contact['code'] == $type) {