This bugtracker is archived (announcement). New tickets are created on github.com. See all framework issues, cms issues, and search the module listings for more specific bugtrackers.

Ticket #2576: diff.patch

File diff.patch, 2.8 KB (added by h.grigg, 6 years ago)

Patch file

  • /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.

    diff -ur /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ori/cms/code/CommentAdmin.php /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ch/cms/code/CommentAdmin.php
    old new  
    6767                 
    6868                $tableFields = array( 
    6969                        "Name" => _t('CommentAdmin.AUTHOR', 'Author'), 
     70                        "Email" => _t('CommentAdmin.EMAIL', 'Email'), 
    7071                        "Comment" => _t('CommentAdmin.COMMENT', 'Comment'), 
    7172                        "PageTitle" => _t('CommentAdmin.PAGE', 'Page'), 
    7273                        "Created" => _t('CommentAdmin.DATEPOSTED', 'Date Posted') 
     
    7475                 
    7576                $popupFields = new FieldSet( 
    7677                        new TextField('Name', _t('CommentAdmin.NAME', 'Name')), 
     78                        new TextField('Email', _t('CommentAdmin.EMAIL', 'Email')), 
    7779                        new TextareaField('Comment', _t('CommentAdmin.COMMENT', 'Comment')) 
    7880                ); 
    7981                 
  • /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.

    diff -ur /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ori/cms/code/sitefeatures/PageComment.php /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ch/cms/code/sitefeatures/PageComment.php
    old new  
    1515                "Name" => "Varchar", 
    1616                "Comment" => "Text", 
    1717                "IsSpam" => "Boolean", 
    18                 "NeedsModeration" => "Boolean" 
     18                "NeedsModeration" => "Boolean", 
     19                "Email" => "Varchar" 
    1920        ); 
    2021 
    2122        static $has_one = array( 
  • /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.

    diff -ur /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ori/cms/code/sitefeatures/PageCommentInterface.php /Users/Howard/Documents/Skrig_random/ss/silverstripe-v2.2.2_ch/cms/code/sitefeatures/PageCommentInterface.php
    old new  
    4040                 
    4141                $fields = new FieldSet( 
    4242                        new HiddenField("ParentID", "ParentID", $this->page->ID), 
    43                         new TextField("Name", _t('PageCommentInterface.YOURNAME', 'Your name')));        
    44                  
     43                        new TextField("Name", _t('PageCommentInterface.YOURNAME', 'Your name')), 
     44                        new TextField("Email", _t('PageCommentInterface.YOUREMAIL', 'Your email - not displayed publicly'))); 
     45                         
    4546                if(MathSpamProtection::isEnabled()){ 
    4647                        $fields->push(new TextField("Math", sprintf(_t('PageCommentInterface.SPAMQUESTION', "Spam protection question: %s"), MathSpamProtection::getMathQuestion()))); 
    4748                }