Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ux): item description should fall back to item name #26339

Merged
merged 2 commits into from Jul 19, 2021

Conversation

ankush
Copy link
Member

@ankush ankush commented Jul 5, 2021

  • Don't set item description = item code from front-end.
  • Description is already being set to item_name in before_insert if it's empty and item_name is a better fallback than item code for description.

Also fixed the wrong condition for erasing description while duplicating item. (it was always erasing it)

Don't set item description = item code from front end. This is already
being set to item_name in before_insert and item_name is better
fallback than item code for description.

Also fixed wrong condition for erasing description while duplicating
item.
@ankush ankush merged commit 80e2698 into frappe:develop Jul 19, 2021
ankush added a commit to ankush/erpnext that referenced this pull request Jul 19, 2021
Don't set item description = item code from front end. This is already
being set to item_name in before_insert and item_name is better
fallback than item code for description.

Also fixed wrong condition for erasing description while duplicating
item.
ankush added a commit that referenced this pull request Jul 19, 2021
Don't set item description = item code from front end. This is already
being set to item_name in before_insert and item_name is better
fallback than item code for description.

Also fixed wrong condition for erasing description while duplicating
item.
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
Don't set item description = item code from front end. This is already
being set to item_name in before_insert and item_name is better
fallback than item code for description.

Also fixed wrong condition for erasing description while duplicating
item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant