Merge pull request #6005 from revant/patch-2

[fix] success_url Issue #6004
This commit is contained in:
Rushabh Mehta 2016-08-06 13:40:02 +05:30 committed by GitHub
commit 2123e02eda

View File

@ -5,6 +5,8 @@ import frappe
def get_context(context):
if frappe.form_dict.project:
context.parents = [{'title': frappe.form_dict.project, 'route': '/projects?project='+ frappe.form_dict.project}]
context.success_url = "/projects?project=" + frappe.form_dict.project
elif context.doc and context.doc.get('project'):
context.parents = [{'title': context.doc.project, 'route': '/projects?project='+ context.doc.project}]
context.parents = [{'title': context.doc.project, 'route': '/projects?project='+ context.doc.project}]
context.success_url = "/projects?project=" + context.doc.project