Commit 9969d609 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1911824: Putting back the function that stopped feedback duplication

On the original page when copying it

To test:
- create an annotation page
- add two feedbacks to the annotation
- copy page
- view original page

Before patch
- now see there are four annotations

After patch
- still see two annotations

Change-Id: I435a53e59e20d44ad186671a7f03df199cb7d423
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent aaea515b
......@@ -422,6 +422,14 @@ class PluginBlocktypeAnnotation extends MaharaCoreBlocktype {
return 'nocopy';
* To stop original annotation getting copies of the feedback
* when we copy a page
public static function ignore_copy_artefacttypes() {
return array('annotationfeedback');
public static function has_feedback_allowed($id) {
return (bool) get_field_sql("
SELECT a.allowcomments FROM {artefact} a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment