Warnings in the logs when dragging a new text block on profile view

Bug #922412 reported by François Marier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Richard Mansfield

Bug Description

After opening my profile view in the view editor, I dragged a new text block and got the following warnings in my error log:

ng: 2012/01/27 15:17:15 [error] 2455#0: *122 FastCGI sent in stderr: "[WAR] 72 (lib/view.php:2188) Undefined property: stdClass::$url
ng: Call stack (most recent first):
ng: * log_message("Undefined property: stdClass::$url", 8, true, true, "/home/francois/code/mahara/htdocs/lib/view.php", 2188) at /home/francois/code/mahara/htdocs/lib/errors.php:446
ng: * error(8, "Undefined property: stdClass::$url", "/home/francois/code/mahara/htdocs/lib/view.php", 2188, array(size 18)) at /home/francois/code/mahara/htdocs/lib/view.php:2188
ng: * View::build_artefactchooser_data(array(size 18), null, null) at /home/francois/code/mahara/htdocs/lib/form/elements/artefactchooser.php:43
ng: * pieform_element_artefactchooser(object(Pieform), array(size 17)) at /home/francois/code/mahara/htdocs/lib/pieforms/pieform.php:1376
ng: * Pieform->build_element_html(array(size 17)) at /home/francois/code/mahara/htdocs/lib/pieforms/pieform.php:657
ng: * Pieform->build() at /home/francois/code/mahara/htdocs/blocktype/lib.php:878
ng: * BlockInstance->build_configure_form(true) at /home/francois/code/mahara/htdocs/blocktype/lib.php:627
ng: * BlockInstance->render_editing(true, true) at /home/francois/code/mahara/htdocs/lib/view.php:1578
ng: * View->addblocktype(array(size 4)) at /home/francois/code/mahara/htdocs/lib/view.php:1294
ng: * View->process_changes() at /home/francois/code/mahara/htdocs/view/blocks.json.php:46

Changed in mahara:
status: Triaged → In Progress
assignee: nobody → Richard Mansfield (richard-mansfield)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1027
Committed: http://gitorious.org/mahara/mahara/commit/d512d73878052bdaefb7fae0a29ddc0948af78d5
Submitter: Francois Marier (<email address hidden>)
Branch: master

commit d512d73878052bdaefb7fae0a29ddc0948af78d5
Author: Richard Mansfield <email address hidden>
Date: Wed Feb 1 16:06:06 2012 +1300

    Ensure url of owner is always set in artefactchooser (bug #922412)

    The artefact_get_owner_info function did not set a url for site-owned
    artefacts. Worse, because the $url variable was sometimes left
    unchanged on a loop iteration, site artefacts could end up being
    displayed with the site name linked to an unrelated user profile page,
    or group homepage, for example.

    Change-Id: If25038e77b7019b40482bbe06ea4da70dab7a683
    Signed-off-by: Richard Mansfield <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
Melissa Draper (melissa)
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.

Other bug subscribers

Remote bug watches

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