Commit 7b1f04a64481938488cb6031cc765f593cee5aed

Tracey Emery 2020-03-11T14:59:15

remove 'Next' link from tags on summary page where no tags exist and commit briefs have set gw_trans->next_id if gw_briefs set gw_trans->next_id in gw_summary, it was being carried over to gw_tags, causing the 'Next' link to be displayed.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 0708437..193f892 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1680,6 +1680,7 @@ gw_tags(struct gw_trans *gw_trans)
 		goto done;
 
 	if (gw_trans->action == GW_SUMMARY) {
+		gw_trans->next_id = NULL;
 		error = gw_output_repo_tags(gw_trans, header,
 		    D_MAXSLCOMMDISP, TAGBRIEF);
 		if (error)