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
F19016630: D7667.id.diff
Sun, Nov 23, 4:44 AM
F18852720: D7667.diff
Fri, Oct 31, 11:32 AM
F18804370: D7667.diff
Oct 18 2025, 7:45 AM
F18783808: D7667.id17313.diff
Oct 13 2025, 9:39 AM
F18639155: D7667.diff
Sep 17 2025, 12:54 PM
F18623823: D7667.diff
Sep 15 2025, 5:46 PM
F18470490: D7667.diff
Sep 2 2025, 5:57 PM
F18468198: D7667.diff
Sep 2 2025, 2:40 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.