Opened 11 years ago
Closed 11 years ago
#22038 closed Bug (fixed)
Admin shows selected rows as "<amount> of undefined selected"
Reported by: | Bas Peschier | Owned by: | Bas Peschier |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | nlsprint14 |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Commit https://github.com/django/django/commit/4523fcd60101124a307bd4026296337087b66884 introduces _actions_icnt
to the local scope, which overrides the value set in the HTML.
The admin will show selected rows in a change list as "1 of undefined selected".
PR under https://github.com/django/django/pull/2274; looking into a test.
Change History (7)
comment:1 by , 11 years ago
Needs tests: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Tim merged the PR in 83a3add4bed8d8d49f93b30c817c66908b0a26ba. A test would be nice.
comment:3 by , 11 years ago
Keywords: | nlsprint14 added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:4 by , 11 years ago
the modified js file should also be minified: https://docs.djangoproject.com/en/1.6/internals/contributing/writing-code/submitting-patches/#compressing-javascript
comment:5 by , 11 years ago
Sent a new PR which documents the variable, adds a test and minifies the Javascript: https://github.com/django/django/pull/2340
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
And that commit actually fixed it
Hi,
Th PR looks good but it'd be better with some tests.
I was also thinking it might be wise to add a comment on the line where
_actions_icnt
is used to indicate that the lack of declaration is on purpose.I'll mark this as
release blocker
as well so that it doesn't slip through the cracks.Thanks for catching this.