mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #17612
[Bug 1297075] A change has been merged
Reviewed: https://reviews.mahara.org/3118
Committed: http://gitorious.org/mahara/mahara/commit/1d8594e22ef263510fcf8c9ff79fc52b59e31a6e
Submitter: Son Nguyen (son.nguyen@xxxxxxxxxxxxxxx)
Branch: master
commit 1d8594e22ef263510fcf8c9ff79fc52b59e31a6e
Author: Yuliya Bozhko <yuliya.bozhko@xxxxxxxxxxxxx>
Date: Wed Mar 26 14:23:57 2014 +1300
Fix for errors when no license exists (Bug #1297075)
Errors occur when "License metadata" is enabled and all licenses are
removed sitewide
Change-Id: Ifb866e0d33c512885ae889862d5a97223ec5ed37
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@xxxxxxxxxxxxx>
--
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/1297075
Title:
Errors when License metadata is enabled and all licenses are removed
sitewide
Status in Mahara ePortfolio:
Fix Committed
Bug description:
To reproduce:
1. As site admin enable "License metadata" in general site settings
(doesn't matter if custom licenses are enabled or not)
2. Remove all licenses from Configure Site > Licenses
3. Try creating a journal post or go to Files page.
Getting:
(lib/license.php:32) Invalid argument supplied for foreach()
Call stack (most recent first):
log_message("Invalid argument supplied for foreach()", 8, true, true,
"/mahara/htdocs/lib/license.php", 32) at
/mahara/htdocs/lib/errors.php:433
error(2, "Invalid argument supplied for foreach()",
"/mahara/htdocs/lib/license.php", 32, array(size 4)) at
/mahara/htdocs/lib/license.php:32
license_form_el_basic(null) at /mahara/htdocs/lib/license.php:216
license_form_files("files_filebrowser") at
/mahara/htdocs/lib/form/elements/filebrowser.php:117
pieform_element_filebrowser(object(Pieform), array(size 13)) at
/mahara/htdocs/lib/pieforms/pieform.php:1431
Pieform->build_element_html(array(size 13)) at
/mahara/htdocs/lib/pieforms/pieform.php:676
Pieform->build() at /mahara/htdocs/lib/pieforms/pieform.php:163
Pieform::process(array(size 12)) at
/mahara/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 12)) at /mahara/htdocs/artefact/file/index.php:22
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1297075/+subscriptions
References