Fossil SCM
Fix "Newer" button in timeline when using "c" parameter
Commit
28dd7c1daaf38d66e468dd3c96992f6fdce62e52
Parent
9a091248757ae42…
1 file changed
+1
+1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1757,10 +1757,11 @@ | ||
| 1757 | 1757 | zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/"); |
| 1758 | 1758 | if( nBefore>=nEntry ){ |
| 1759 | 1759 | timeline_submenu(&url, "Older", "b", zDate, "c"); |
| 1760 | 1760 | zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "c", 0)); |
| 1761 | 1761 | } |
| 1762 | + zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/"); | |
| 1762 | 1763 | if( nAfter>=nEntry ){ |
| 1763 | 1764 | timeline_submenu(&url, "Newer", "a", zDate, "c"); |
| 1764 | 1765 | } |
| 1765 | 1766 | free(zDate); |
| 1766 | 1767 | }else{ |
| 1767 | 1768 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1757,10 +1757,11 @@ | |
| 1757 | zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/"); |
| 1758 | if( nBefore>=nEntry ){ |
| 1759 | timeline_submenu(&url, "Older", "b", zDate, "c"); |
| 1760 | zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "c", 0)); |
| 1761 | } |
| 1762 | if( nAfter>=nEntry ){ |
| 1763 | timeline_submenu(&url, "Newer", "a", zDate, "c"); |
| 1764 | } |
| 1765 | free(zDate); |
| 1766 | }else{ |
| 1767 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1757,10 +1757,11 @@ | |
| 1757 | zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/"); |
| 1758 | if( nBefore>=nEntry ){ |
| 1759 | timeline_submenu(&url, "Older", "b", zDate, "c"); |
| 1760 | zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "c", 0)); |
| 1761 | } |
| 1762 | zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/"); |
| 1763 | if( nAfter>=nEntry ){ |
| 1764 | timeline_submenu(&url, "Newer", "a", zDate, "c"); |
| 1765 | } |
| 1766 | free(zDate); |
| 1767 | }else{ |
| 1768 |