From 84e61c6cdfa0750215b0dffd490b20748d9b9823 Mon Sep 17 00:00:00 2001 From: gerard Date: Mon, 16 Jul 2018 07:55:13 +0200 Subject: [PATCH] Bug fixed --- services/loopback/common/methods/client/updateBasicData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/loopback/common/methods/client/updateBasicData.js b/services/loopback/common/methods/client/updateBasicData.js index 3a920ce01a..81c216c061 100644 --- a/services/loopback/common/methods/client/updateBasicData.js +++ b/services/loopback/common/methods/client/updateBasicData.js @@ -27,7 +27,7 @@ module.exports = Self => { }); Self.updateBasicData = async(params, id) => { - let validUpdateParams = ['id', 'name', 'email', 'phone', 'mobile', 'salesPerson', 'contactChanelFk']; + let validUpdateParams = ['id', 'contact', 'name', 'email', 'phone', 'mobile', 'salesPersonFk', 'contactChannelFk']; for (const key in params) { if (validUpdateParams.indexOf(key) === -1) throw new Error(`You don't have enough privileges to do that`);