Skip to content

Commit

Permalink
Merge pull request #39 from 8848digital/record_update_issue_fix
Browse files Browse the repository at this point in the history
fix: Update Condition Issue Fix
  • Loading branch information
tinadn authored Nov 12, 2024
2 parents 106eb23 + 59a3b7c commit 2818f2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frappe/model/base_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,9 @@ def get_unique_columns(self):
return unique_columns

def db_update(self):
if frappe.db.db_type == "postgres":
self.show_unique_validation_message_for_postgress()

if self.get("__islocal") or not self.name:
if frappe.db.db_type == "postgres":
self.show_unique_validation_message_for_postgress()
self.db_insert()
return

Expand Down

0 comments on commit 2818f2b

Please sign in to comment.