File tree Expand file tree Collapse file tree
html-templates/subtemplates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 { sprintf(_(" You can use %s for formatting." ), $markdownTextLink )}
2525 </p >
2626
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 >
2828 </div >
2929 </fieldset >
3030 </form >
3131 { else }
3232 { 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 >
3434 { /if }
3535{ /template}
3636
Original file line number Diff line number Diff line change @@ -75,5 +75,10 @@ protected static function onBeforeRecordDestroyed(\ActiveRecord $Person)
7575 foreach ($ Person ->ProjectMemberships as $ ProjectMembership ) {
7676 $ ProjectMembership ->destroy ();
7777 }
78+
79+ // delete comments
80+ foreach ($ Person ->Comments as $ Comment ) {
81+ $ Comment ->destroy ();
82+ }
7883 }
7984}
You can’t perform that action at this time.
0 commit comments