Fix a bug where the wrong text was shown for IPR declarations which specified that licensing terms would be announced later (option d).

- Legacy-Id: 3265
This commit is contained in:
Henrik Levkowetz 2011-07-27 16:44:10 +00:00
parent 97218e3d4e
commit 818499b494

View file

@ -78,7 +78,7 @@ def show(request, ipr_id=None, removed=None):
# Very hacky way to get rid of the last part of option 'd':
cut = text.find(" (")
if cut > 0:
text = text[cut:] + "."
text = text[:cut] + "."
# get rid of the "a) ", "b) ", etc.
ipr.licensing_option = text[3:]
if ipr.is_pending: