Commit 49680f1d authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1911824: Putting back the function that stopped feedback duplication"

parents 813df200 9969d609
...@@ -422,6 +422,14 @@ class PluginBlocktypeAnnotation extends MaharaCoreBlocktype { ...@@ -422,6 +422,14 @@ class PluginBlocktypeAnnotation extends MaharaCoreBlocktype {
return 'nocopy'; 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) { public static function has_feedback_allowed($id) {
return (bool) get_field_sql(" return (bool) get_field_sql("
SELECT a.allowcomments FROM {artefact} a 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