Merge pull request #3156 from jygaulier/PHRAS-2726_setstatus-api_4.1

PHRASE-2726 #comment Fusion of Setstatus-api in 4.1, after this merge and this update, the PR # 3161, currently in a failed state, should proceed correctly. This merge order is not the best ways but this is more quicker.
This commit is contained in:
Nicolas Maillat
2019-09-05 17:07:03 +02:00
committed by GitHub

View File

@@ -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));