Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | For the wiki_render_page_list_json() function, only include pages on the list if they have one or more artifacts. This seems to clears the bug described by "Wiki editor inop" forum post |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5244a5484a103065aa15cbeadeb93990 |
User & Date: | drh 2020-08-23 18:12:47 |
Original Comment: | For the wiki_render_page_list_json() function, only include pages on the list if they have one or more artifacts. This seems to clears the bug described by ["Wiki editor inop" forum post](forum:a9e345482e). |
References
2024-01-29
| ||
05:50 | • Wiki page "To Do List" ... (artifact: 7f3dab46 user: stephan) | |
2020-08-24
| ||
04:44 | Applied fix from [5244a548] to /json/wiki/list. ... (check-in: 5a568d8b user: stephan tags: trunk) | |
04:33 | Reverted [37409e7dbe] in favor of [5244a548], which is cleaner, smaller, and works. ... (check-in: a7d8c58d user: stephan tags: trunk) | |
Context
2020-08-23
| ||
20:06 | Updates to the "fossil config" command documentation and the change log. ... (check-in: 79b1cd4b user: drh tags: trunk) | |
18:12 | For the wiki_render_page_list_json() function, only include pages on the list if they have one or more artifacts. This seems to clears the bug described by "Wiki editor inop" forum post ... (check-in: 5244a548 user: drh tags: trunk) | |
15:55 | Add support for interwiki links. ... (check-in: f4dc114a user: drh tags: trunk) | |
Changes
Changes to src/wiki.c.
︙ | ︙ | |||
1002 1003 1004 1005 1006 1007 1008 | */ static void wiki_render_page_list_json(int verbose, int includeContent){ Stmt q = empty_Stmt; int n = 0; db_begin_transaction(); db_prepare(&q, "SELECT" " substr(tagname,6) AS name" | > | | 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 | */ static void wiki_render_page_list_json(int verbose, int includeContent){ Stmt q = empty_Stmt; int n = 0; db_begin_transaction(); db_prepare(&q, "SELECT" " substr(tagname,6) AS name" " FROM tag JOIN tagxref USING('tagid')" " WHERE tagname GLOB 'wiki-*'" " UNION SELECT 'Sandbox' AS name" " ORDER BY name COLLATE NOCASE"); CX("["); while( SQLITE_ROW==db_step(&q) ){ char const * zName = db_column_text(&q,0); if(verbose==0){ if(n++){ |
︙ | ︙ |