From 53272de3f5e8bea2bd3877a48b122daf8d31dbd8 Mon Sep 17 00:00:00 2001 From: Jean-Yves Gaulier Date: Tue, 3 Sep 2019 18:07:36 +0200 Subject: [PATCH] PHRAS-2726_setstatus-api_4.1 : port of PHRAS-2716 setstatus api did change unspecified bits due to string offset error --- lib/Alchemy/Phrasea/Controller/Api/V1Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php b/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php index 54c246a897..5bb3e10614 100644 --- a/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php +++ b/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php @@ -1984,7 +1984,7 @@ class V1Controller extends Controller return $this->getBadRequestAction($request); } - $datas = substr($datas, 0, ($n)) . $value . substr($datas, ($n + 2)); + $datas = substr($datas, 0, ($n)) . $value . substr($datas, ($n + 1)); } $record->setStatus(strrev($datas));