Skip to content

Commit

Permalink
fix: Update user profile picture, if employee profile pic is changed (#…
Browse files Browse the repository at this point in the history
…37483)

* fix: Update user pic if employee pic is changed.

* fix: Update condition
  • Loading branch information
niraj2477 authored Oct 21, 2023
1 parent 98cc743 commit 4aa8417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/setup/doctype/employee/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def update_user(self):
user.gender = self.gender

if self.image:
if not user.user_image:
if not user.user_image or self.has_value_changed("image"):
user.user_image = self.image
try:
frappe.get_doc(
Expand Down

0 comments on commit 4aa8417

Please sign in to comment.