aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/customer/validators.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-10 19:30:02 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-10 19:30:02 +0530
commit05268541100f11b3a0e089adcc1bbb591f4579de (patch)
tree54231fcc80239e9d1cab6abd5b63d9febb547d3a /customer/validators.go
parentd55d43bb4ac0b3114c54a4dd5a1e53c76a3df3a2 (diff)
Bug fix: phone validation error when editing a clientv0.13.1
Diffstat (limited to 'customer/validators.go')
-rw-r--r--customer/validators.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/customer/validators.go b/customer/validators.go
index ea2a9d5..a495772 100644
--- a/customer/validators.go
+++ b/customer/validators.go
@@ -61,7 +61,7 @@ func checkDuplicateExisting(field, value string, userId, customerId uint) error
if value != "" {
var count int64
err := db.Model(&Customer{}).
- Where("user_id = ? and id != ? and" + field + " = ?", userId, customerId, value).
+ Where("user_id = ? and id != ? and " + field + " = ?", userId, customerId, value).
Count(&count).
Error