Page MenuHomePhabricator

Fix Maniphest Next button not working when default query has 100+ results.
ClosedPublic

Authored by brechtvl on Nov 27 2013, 8:13 PM.
Tags
None
Referenced Files
F14047987: D7667.diff
Thu, Nov 14, 6:13 AM
F14036631: D7667.diff
Sun, Nov 10, 11:15 AM
F14035693: D7667.diff
Sun, Nov 10, 7:11 AM
F13992222: D7667.id.diff
Tue, Oct 22, 3:15 PM
F13974105: D7667.diff
Fri, Oct 18, 4:06 AM
F13972523: D7667.id17312.diff
Thu, Oct 17, 7:32 PM
F13971504: D7667.id17313.diff
Thu, Oct 17, 1:42 PM
Unknown Object (File)
Sep 29 2024, 9:33 PM

Details

Summary

If there is no /query in the URL, the default query would be lost when clicking Next, causing the search form to be shown on the second page. This is not so likely to happen on a standard Phabricator installation because the default query is Assigned, and few people will have 100+ tasks assigned.

Test Plan
  • Go to /maniphest/query/edit/
  • Move Open Tasks to the top
  • Go to /maniphest/
  • Click Next on the bottom right
  • See only tasks that are actually open

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

There may be a better and more compact way to fix this, I'm no PHP developer, but this solved the issue here.

This seems reasonable to me. I might just do something like:

$data = ...
unset($data['before']);
unset($data['after']);
if ($data) {

}

...were I writing it myself, but I don't think that's dramatically cleaner.