From bf213318d64f9b6d29b643f2e3a0edfc62ce4a8c Mon Sep 17 00:00:00 2001
From: Vishal Dhayagude
Date: Mon, 11 Sep 2017 13:30:23 +0530
Subject: [PATCH] Revert "[new] Shows bounty creator information"
---
foundation/erpnext_foundation/doctype/bounty/bounty.py | 5 +----
.../erpnext_foundation/doctype/bounty/templates/bounty.html | 1 -
.../doctype/bounty/templates/bounty_row.html | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/foundation/erpnext_foundation/doctype/bounty/bounty.py b/foundation/erpnext_foundation/doctype/bounty/bounty.py
index a88c44fb..9e2b8d6b 100644
--- a/foundation/erpnext_foundation/doctype/bounty/bounty.py
+++ b/foundation/erpnext_foundation/doctype/bounty/bounty.py
@@ -80,7 +80,4 @@ def get_list_context(context):
context.get_paid_backers = get_paid_backers
def get_paid_backers(backers):
- if backers:
- return [backer for backer in backers if backer.paid]
- else:
- return 0
\ No newline at end of file
+ return [backer for backer in backers if backer.paid]
\ No newline at end of file
diff --git a/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html b/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html
index 7e869839..36a25dc0 100644
--- a/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html
+++ b/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html
@@ -107,7 +107,6 @@
About this feature
{{doc.description}}
- Bounty created by {{ doc.owner }}
Bounties FAQ
diff --git a/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html b/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html
index 0d846e3b..04b90e94 100644
--- a/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html
+++ b/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html
@@ -17,7 +17,7 @@
class='octicon octicon-comment-discussion'>
{% endif %}
{% set paid_backers = get_paid_backers(doc.bounty_backer) %}
- {% if paid_backers and paid_backers|len > 0 %}
+ {% if paid_backers|len > 0 %}
{{ paid_backers|len }}
{% if paid_backers|len > 1 %}