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 update parent check for communication #1885

Closed
wants to merge 1 commit into from

Conversation

RobertSchouten
Copy link
Contributor

changes update parent so is dependant on replied option in status instead of open so replied can be removed to opt-out of update

changes update parent so is dependant on replied option in status instead of open so replied can be removed to opt-out of update
@@ -148,7 +148,7 @@ def update_parent_status(doc):

status_field = parent.meta.get_field("status")

if status_field and "Open" in (status_field.options or "").split("\n"):
if status_field and "Replied" in (status_field.options or "").split("\n"):
Copy link
Member

Choose a reason for hiding this comment

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

we should check both options "Open" and "Replied". Can you fix?

@RobertSchouten
Copy link
Contributor Author

the primary reason for the change is to block the updating of docstatus from communication so if replied option is removed it doesnt update but still want open status

@rmehta rmehta closed this in ab5f01a Jul 20, 2016
gagaboy added a commit to gagaboy/frappe that referenced this pull request Jul 21, 2016
* commit '9e305cc23709709986238f1d21b8dcd580de3ff0': (213 commits)
  [minor] dashboard fixes
  [fix] dashboard cleanup
  [fix] for offcanvas, fixes frappe/erpnext#5803
  deleted offcanvas related files and code
  deleted offcanvas_left_sidebar.html
  close sidebar on link click
  comment out offcanvas related code
  [mobile ui] fixed navbar-breadcrumbs
  [fix] test
  [hot] fix accidental rename
  [minor] use replied option to opt-in for email status, fixes frappe#1885
  [fix] dont update modified timestamp if called from post save methods
  [minor] re-rendered the headers while switching views
  [mobile ui] fixed frappe#5287
  [fix] grid refresh issue, fixed frappe/erpnext#5781
  [View] Switching between Image and List View from Sidebar
  [enhance] run actions in background doc.queue_action("submit")
  [cleanup] webforms
  [fix] angolan currency frappe#1828
  [minor] fixed error for frappe#5782 and grid text editor must be text
  ...
shreyasp pushed a commit to shreyasp/frappe that referenced this pull request Aug 1, 2016
@RobertSchouten RobertSchouten deleted the patch-34 branch November 18, 2016 02:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 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