Existing annotations throw warning due to missing evidence

Bug #1623282 reported by Robert Lyon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon

Bug Description

As we added annotation plugin a while back those annotations do not have an evidence value set for them.

We need to take that into account when rendering their feedback

Call stack (most recent first):

    log_message("Trying to get property of non-object", 8, true, true, "/var/www/html/mahara/htdocs/artefact/annotation/li...", 1278) at /var/www/html/mahara/htdocs/lib/errors.php:513
    error(8, "Trying to get property of non-object", "/var/www/html/mahara/htdocs/artefact/annotation/li...", 1278, array(size 11)) at /var/www/html/mahara/htdocs/artefact/annotation/lib.php:1278
    ArtefactTypeAnnotationfeedback::add_annotation_feedback_form(object(ArtefactTypeAnnotation), object(View), null, "108", false, "0") at /var/www/html/mahara/htdocs/artefact/annotation/lib.php:1132

Robert Lyon (robertl-9)
Changed in mahara:
status: New → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/6976

Revision history for this message
Robert Lyon (robertl-9) wrote :

When we have this situation:

1) an older site - say 16.04
2) annotation block enabled/active in Admmin -> Extensions
3) add some annotation blocks to a page
4) leave feedback on annotation blocks

And we upgrade to master and then do:

1) install/activate smartevidence
2) allow smart evidence to the institution the above user/page is in
3) add the page into a collection and choose a smart evidence framework for it

When we go to view the page we get 'property of non-object' errors

This is because the code expected all annotations to have an evidence level set

I've added check for this now

Revision history for this message
Robert Lyon (robertl-9) wrote :

What would be also good to have is for some way to set old annotations to join with a SE matrix point

Revision history for this message
Robert Lyon (robertl-9) wrote :

Ah, Ignore last message - there already is a way - just edit the block and pick a smart evidence standard :)

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/6976
Committed: https://git.mahara.org/mahara/mahara/commit/1adfbdc6ecee0accc0375b96102e0e9dfe09be07
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 1adfbdc6ecee0accc0375b96102e0e9dfe09be07
Author: Robert Lyon <email address hidden>
Date: Wed Sep 14 13:48:17 2016 +1200

Bug 1623282: property of non-object error for old annotations

When the old annotations have feedback on them

behatnotneeded

Change-Id: I1325ebf9d3067065730442b81c885d5b7178c777
Signed-off-by: Robert Lyon <email address hidden>

Son Nguyen (ngson2000)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "16.10_STABLE" branch: https://reviews.mahara.org/7025

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7025
Committed: https://git.mahara.org/mahara/mahara/commit/58badae96b1a53a8b9322ff1c7c91c5ec4a16e04
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.10_STABLE

commit 58badae96b1a53a8b9322ff1c7c91c5ec4a16e04
Author: Robert Lyon <email address hidden>
Date: Wed Sep 14 13:48:17 2016 +1200

Bug 1623282: property of non-object error for old annotations

When the old annotations have feedback on them

behatnotneeded

Change-Id: I1325ebf9d3067065730442b81c885d5b7178c777
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 1adfbdc6ecee0accc0375b96102e0e9dfe09be07)

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10rc2 → 16.10.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.