Skip to content
Snippets Groups Projects
Commit 7ff69f83 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX update password shipping

parent 9f22216e
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,8 @@ class ShippingTemplateController
$body['account']['password'] = PasswordModel::encrypt(['password' => $body['account']['password']]);
} else {
$shippingInfo = ShippingTemplateModel::getById(['id' => $aArgs['id'], 'select' => ['account']]);
$body['account']['password'] = $shippingInfo['account']->password;
$shippingInfo['account'] = json_decode($shippingInfo['account'], true);
$body['account']['password'] = $shippingInfo['account']['password'];
}
$body['options'] = json_encode($body['options']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment