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

Change Email Signature fieldtype #6161

Merged
merged 1 commit into from Oct 2, 2018

Conversation

shreyashah115
Copy link
Contributor

  • Change fieldtype from Text to Text Editor
  • Add patch to handle cases having a new line

Please read the Pull Request Checklist to ensure you have everything that is needed to get your contribution merged.

- Change fieldtype from Text to Text Editor
- Add patch to handle cases having a new line
frappe.reload_doc('core', 'doctype', 'user')
for d in signatures:
signature = d.get('email_signature')
signature = signature.replace('\n', '<br>')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signature = frappe.markdown(signature) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frappe.markdown is written on client side, so can't use it in patch.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also exists in server side!

@rmehta rmehta merged commit b7d8f23 into frappe:staging-fixes Oct 2, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants