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
F14095456: D7667.diff
Mon, Nov 25, 9:26 PM
Unknown Object (File)
Thu, Nov 21, 8:41 PM
Unknown Object (File)
Sun, Nov 17, 11:59 PM
Unknown Object (File)
Thu, Nov 14, 6:13 AM
Unknown Object (File)
Sun, Nov 10, 11:15 AM
Unknown Object (File)
Sun, Nov 10, 7:11 AM
Unknown Object (File)
Oct 22 2024, 3:15 PM
Unknown Object (File)
Oct 18 2024, 4:06 AM

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

Branch
fix-browse-without-query
Lint
Lint Passed
Unit
No Test Coverage

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.