File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
html-templates/subtemplates Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 24
24
{ sprintf(_(" You can use %s for formatting." ), $markdownTextLink )}
25
25
</p >
26
26
27
- <button type =" submit" class =" btn btn-primary" >{ tif $Comment ? {_ Edit} : { _ Post} } { _ Comment} </button >
27
+ <button type =" submit" class =" btn btn-primary" >{ tif $Comment ? _( ' Edit Comment ' ) : _( ' Post Comment' ) } </button >
28
28
</div >
29
29
</fieldset >
30
30
</form >
31
31
{ else }
32
32
{ capture assign= loginTextLink} <a class =" button primary" href =" /login?return={ $Context -> getURL ()|escape :url} " >{ _ " Log in" } </a >{ /capture }
33
- <p class =" login-hint well" >{ sprintf(_(" $ s to post a comment." ), $loginTextLink )} </p >
33
+ <p class =" login-hint well" >{ sprintf(_(" % s to post a comment." ), $loginTextLink )} </p >
34
34
{ /if }
35
35
{ /template}
36
36
Original file line number Diff line number Diff line change @@ -75,5 +75,10 @@ protected static function onBeforeRecordDestroyed(\ActiveRecord $Person)
75
75
foreach ($ Person ->ProjectMemberships as $ ProjectMembership ) {
76
76
$ ProjectMembership ->destroy ();
77
77
}
78
+
79
+ // delete comments
80
+ foreach ($ Person ->Comments as $ Comment ) {
81
+ $ Comment ->destroy ();
82
+ }
78
83
}
79
84
}
You can’t perform that action at this time.
0 commit comments