Fossil SCM
Bug fix: Allow new subscribers the option to select "Forum Edits", though it still defaults to "off".
Commit
ea81b30ddf1f56c3e6e1d8c272bb8826228ac226ecf4e93ea573bd58dc9242b0
Parent
0874340b4531cfa…
1 file changed
+3
+3
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -1368,10 +1368,11 @@ | ||
| 1368 | 1368 | if( PB("sa") ) ssub[nsub++] = 'a'; |
| 1369 | 1369 | if( g.perm.Read && PB("sc") ) ssub[nsub++] = 'c'; |
| 1370 | 1370 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1371 | 1371 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1372 | 1372 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1373 | + if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x'; | |
| 1373 | 1374 | ssub[nsub] = 0; |
| 1374 | 1375 | db_multi_exec( |
| 1375 | 1376 | "INSERT INTO subscriber(semail,suname," |
| 1376 | 1377 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1377 | 1378 | "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)", |
| @@ -1478,10 +1479,12 @@ | ||
| 1478 | 1479 | @ Check-ins</label><br> |
| 1479 | 1480 | } |
| 1480 | 1481 | if( g.perm.RdForum ){ |
| 1481 | 1482 | @ <label><input type="checkbox" name="sf" %s(PCK("sf"))> \ |
| 1482 | 1483 | @ Forum Posts</label><br> |
| 1484 | + @ <label><input type="checkbox" name="sx" %s(PCK("sx"))> \ | |
| 1485 | + @ Forum Edits</label><br> | |
| 1483 | 1486 | } |
| 1484 | 1487 | if( g.perm.RdTkt ){ |
| 1485 | 1488 | @ <label><input type="checkbox" name="st" %s(PCK("st"))> \ |
| 1486 | 1489 | @ Ticket changes</label><br> |
| 1487 | 1490 | } |
| 1488 | 1491 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -1368,10 +1368,11 @@ | |
| 1368 | if( PB("sa") ) ssub[nsub++] = 'a'; |
| 1369 | if( g.perm.Read && PB("sc") ) ssub[nsub++] = 'c'; |
| 1370 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1371 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1372 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1373 | ssub[nsub] = 0; |
| 1374 | db_multi_exec( |
| 1375 | "INSERT INTO subscriber(semail,suname," |
| 1376 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1377 | "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)", |
| @@ -1478,10 +1479,12 @@ | |
| 1478 | @ Check-ins</label><br> |
| 1479 | } |
| 1480 | if( g.perm.RdForum ){ |
| 1481 | @ <label><input type="checkbox" name="sf" %s(PCK("sf"))> \ |
| 1482 | @ Forum Posts</label><br> |
| 1483 | } |
| 1484 | if( g.perm.RdTkt ){ |
| 1485 | @ <label><input type="checkbox" name="st" %s(PCK("st"))> \ |
| 1486 | @ Ticket changes</label><br> |
| 1487 | } |
| 1488 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -1368,10 +1368,11 @@ | |
| 1368 | if( PB("sa") ) ssub[nsub++] = 'a'; |
| 1369 | if( g.perm.Read && PB("sc") ) ssub[nsub++] = 'c'; |
| 1370 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1371 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1372 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1373 | if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x'; |
| 1374 | ssub[nsub] = 0; |
| 1375 | db_multi_exec( |
| 1376 | "INSERT INTO subscriber(semail,suname," |
| 1377 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1378 | "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)", |
| @@ -1478,10 +1479,12 @@ | |
| 1479 | @ Check-ins</label><br> |
| 1480 | } |
| 1481 | if( g.perm.RdForum ){ |
| 1482 | @ <label><input type="checkbox" name="sf" %s(PCK("sf"))> \ |
| 1483 | @ Forum Posts</label><br> |
| 1484 | @ <label><input type="checkbox" name="sx" %s(PCK("sx"))> \ |
| 1485 | @ Forum Edits</label><br> |
| 1486 | } |
| 1487 | if( g.perm.RdTkt ){ |
| 1488 | @ <label><input type="checkbox" name="st" %s(PCK("st"))> \ |
| 1489 | @ Ticket changes</label><br> |
| 1490 | } |
| 1491 |