Fossil SCM

Bug fix: Allow new subscribers the option to select "Forum Edits", though it still defaults to "off".

drh 2020-04-23 18:49 trunk
Commit ea81b30ddf1f56c3e6e1d8c272bb8826228ac226ecf4e93ea573bd58dc9242b0
1 file changed +3
--- src/alerts.c
+++ src/alerts.c
@@ -1368,10 +1368,11 @@
13681368
if( PB("sa") ) ssub[nsub++] = 'a';
13691369
if( g.perm.Read && PB("sc") ) ssub[nsub++] = 'c';
13701370
if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f';
13711371
if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't';
13721372
if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w';
1373
+ if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x';
13731374
ssub[nsub] = 0;
13741375
db_multi_exec(
13751376
"INSERT INTO subscriber(semail,suname,"
13761377
" sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)"
13771378
"VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)",
@@ -1478,10 +1479,12 @@
14781479
@ Check-ins</label><br>
14791480
}
14801481
if( g.perm.RdForum ){
14811482
@ <label><input type="checkbox" name="sf" %s(PCK("sf"))> \
14821483
@ Forum Posts</label><br>
1484
+ @ <label><input type="checkbox" name="sx" %s(PCK("sx"))> \
1485
+ @ Forum Edits</label><br>
14831486
}
14841487
if( g.perm.RdTkt ){
14851488
@ <label><input type="checkbox" name="st" %s(PCK("st"))> \
14861489
@ Ticket changes</label><br>
14871490
}
14881491
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button