← Back to team overview

mahara-contributors team mailing list archive

[Bug 1514661] A change has been merged

 

Reviewed:  https://reviews.mahara.org/5691
Committed: https://git.mahara.org/mahara/mahara/commit/1dacaab92e5864196c5e9d8edc4557a45022e26c
Submitter: Aaron Wells (aaronw@xxxxxxxxxxxxxxx)
Branch:    master

commit 1dacaab92e5864196c5e9d8edc4557a45022e26c
Author: Ghada El-Zoghbi <ghada@xxxxxxxxxxxxxxx>
Date:   Wed Nov 11 15:58:40 2015 +1300

Prevent "Undefined index" warning (Bug 1514661)

behatnotneeded: Requires an upgrade to generate the warning

Change-Id: Ic412e92a7d1ed35765ed41f3ee8772e63f1bb3e5

-- 
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/1514661

Title:
  Textbox blocktype raising error when configdata['artefactids'] is not
  set

Status in Mahara:
  Fix Committed
Status in Mahara 15.10 series:
  In Progress
Status in Mahara 16.04 series:
  Fix Committed

Bug description:
  Mahara 15.10
  version = 2015092910
  release = 15.10.0

  DB: postgresql (but shouldn't matter)

  
  Upgrading from Mahar 1.10 to 15.10, some textboxes give the following error:

  [WAR] 3b (artefact/internal/blocktype/textbox/lib.php:313) Undefined index: artefactids
  Call stack (most recent first):

      log_message("Undefined index: artefactids", 8, true, true, "/var/www/mahara-site-acttqi-1510/artefact/internal...", 313) at /var/www/mahara-site-acttqi-1510/lib/errors.php:441
      error(8, "Undefined index: artefactids", "/var/www/mahara-site-acttqi-1510/artefact/internal...", 313, array(size 18)) at /var/www/mahara-site-acttqi-1510/artefact/internal/blocktype/textbox/lib.php:313
      PluginBlocktypeTextbox::instance_config_form(object(BlockInstance), "0") at Unknown:0
      call_user_func_array(array(size 2), array(size 2)) at /var/www/mahara-site-acttqi-1510/lib/mahara.php:1693
      call_static_method("PluginBlocktypeTextbox", "instance_config_form", object(BlockInstance), "0") at /var/www/mahara-site-acttqi-1510/blocktype/lib.php:1017
      BlockInstance->build_configure_form(false) at /var/www/mahara-site-acttqi-1510/blocktype/lib.php:817
      BlockInstance->render_editing(true) at /var/www/mahara-site-acttqi-1510/lib/view.php:2445
      View->configureblockinstance(array(size 2)) at /var/www/mahara-site-acttqi-1510/lib/view.php:1849
      View->process_changes() at /var/www/mahara-site-acttqi-1510/view/blocks.json.php:30


  The configdata['artefacids'] is not set.

  We should check for:

      && isset($configdata['artefactids'])

  on line 313 of artefact/internal/blocktype/textbox/lib.php

  as we do in other blocktypes.

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


References