← Back to team overview

mahara-contributors team mailing list archive

[Bug 1555329] [NEW] System user was notified when anonymous feedbacks were added

 

Public bug reported:

Version: master (16.04), 15.04, 15.10
Platform: any

Steps:

1. Change email address of user with id=0 in database to your email address.
2. Login as a normal user, create a page and share the page to public allow anonymous feedbacks on it.
3. Logout, access to the page and add a comment

Expected result:
 You should not receive an email with subject "New feedback on ..."

the condition isset($author) should be added in the if statement in the
line 1630, htdocs/artefact/comment/lib.php

 if ( isset($author) && !get_field('usr_watchlist_view', 'ctime', 'usr', $author, 'view', $view->get('id')) && ($author != $owner)) {
 ...
 }

** Affects: mahara
     Importance: Medium
         Status: Confirmed

** Affects: mahara/16.04
     Importance: Medium
         Status: Confirmed

** Also affects: mahara/15.10
   Importance: Undecided
       Status: New

** Also affects: mahara/15.04
   Importance: Undecided
       Status: New

** Also affects: mahara/16.04
   Importance: Undecided
       Status: New

** Changed in: mahara/16.04
       Status: New => Confirmed

** Changed in: mahara/15.10
       Status: New => Confirmed

** Changed in: mahara/15.04
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1555329

Title:
  System user was notified when anonymous feedbacks were added

Status in Mahara:
  Confirmed
Status in Mahara 16.04 series:
  Confirmed

Bug description:
  Version: master (16.04), 15.04, 15.10
  Platform: any

  Steps:

  1. Change email address of user with id=0 in database to your email address.
  2. Login as a normal user, create a page and share the page to public allow anonymous feedbacks on it.
  3. Logout, access to the page and add a comment

  Expected result:
   You should not receive an email with subject "New feedback on ..."

  the condition isset($author) should be added in the if statement in
  the line 1630, htdocs/artefact/comment/lib.php

   if ( isset($author) && !get_field('usr_watchlist_view', 'ctime', 'usr', $author, 'view', $view->get('id')) && ($author != $owner)) {
   ...
   }

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1555329/+subscriptions


Follow ups