Open particleflux opened 4 years ago
The git plugin shows a wrong amount of found results on the too_much error message. Is always says There are 1/10 matches. Try again.
too_much
This is probably due to the fact that a count() call is missing on the rply() call:
count()
rply()
return $plugin->rply('too_much', array($__DOG_GIT_RESULTS, 10));
Should probably be:
return $plugin->rply('too_much', array(count($__DOG_GIT_RESULTS), 10));
Code in question: https://github.com/gizmore/gwf3/blob/cda62759d2add69ca89f9f6fc2570bed3a36cd6a/core/module/Dog/dog_plugins/dog_plugin/Source/git_Pb.php#L9 https://github.com/gizmore/gwf3/blob/cda62759d2add69ca89f9f6fc2570bed3a36cd6a/core/module/Dog/dog_plugins/dog_plugin/Source/git_Pb.php#L91
The message itself, even with correct values, doesn't make much sense.
The git plugin shows a wrong amount of found results on the
too_much
error message. Is always says There are 1/10 matches. Try again.This is probably due to the fact that a
count()
call is missing on therply()
call:Should probably be: