Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

vuln: more consistent list page, no 'More details' button when no curve ... #329

Merged
merged 1 commit into from
Jan 13, 2015

Conversation

nastasi-oq
Copy link
Member

...selected and fix wrong default for curve_id.

…ve selected and fix wrong default for curve_id
@@ -54,8 +54,9 @@ def list_entries(request, **kwargs):
types_of_assessment[type_of_assessment].lower())

try:
curve_id = int(request.GET.get("curve",
TA.FRAGILITY))
Copy link
Member Author

Choose a reason for hiding this comment

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

The second argument of get method is the default value to use when curve argument isn't set, the correct value is -1 not TA.FRAGILITY.

@bwyss
Copy link
Contributor

bwyss commented Jan 13, 2015

I am able to see 'Select a list item on the left' for just a brief moment, then the 'more details' button is shown before any function is selected

@bwyss
Copy link
Contributor

bwyss commented Jan 13, 2015

LGTM

nastasi-oq added a commit that referenced this pull request Jan 13, 2015
vuln: more consistent list page, no 'More details' button when no curve ...
@nastasi-oq nastasi-oq merged commit 2200188 into master Jan 13, 2015
@daniviga daniviga deleted the vuln-fix-more-det branch October 17, 2016 05:44
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