Merge pull request #21802 from atm-greg/Fix_api_proposals_put_line

fix put line errase desc and label of line
This commit is contained in:
Laurent Destailleur 2022-08-22 13:07:32 +02:00 committed by GitHub
commit a06abb1d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,8 +395,8 @@ class Proposals extends DolibarrApi
$request_data = (object) $request_data;
$request_data->desc = checkVal($request_data->desc, 'restricthtml');
$request_data->label = checkVal($request_data->label);
if (isset($request_data->desc)) $request_data->desc = checkVal($request_data->desc, 'restricthtml');
if (isset($request_data->label)) $request_data->label = checkVal($request_data->label);
$propalline = new PropaleLigne($this->db);
$result = $propalline->fetch($lineid);