mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-14591: portfolio - fixing regression I introduced when refactoring
This commit is contained in:
parent
b47c52f1cf
commit
7c61a8f047
@ -200,7 +200,7 @@ function portfolio_add_button($callbackclass, $callbackargs, $callbackfile=null,
|
||||
$output .= "\n" . '<input type="hidden" name="instance" value="' . $instance->get('id') . '" />';
|
||||
}
|
||||
else {
|
||||
$selectoutput = portfolio_instance_select($instances, $callersupports, $callbackclass, true);
|
||||
$selectoutput = portfolio_instance_select($instances, $callersupports, $callbackclass, 'instance', true);
|
||||
}
|
||||
|
||||
if ($fullform) {
|
||||
|
@ -110,7 +110,7 @@ if (!$exporter->get('instance')) {
|
||||
// for the next block to catch
|
||||
$form = '<form action="' . $CFG->wwwroot . '/portfolio/add.php" method="post">' . "\n";
|
||||
|
||||
if (!$select = portfolio_instance_select(portfolio_instances(), $exporter->get('caller')->supported_formats(), get_class($exporter->get('caller')), true)) {
|
||||
if (!$select = portfolio_instance_select(portfolio_instances(), $exporter->get('caller')->supported_formats(), get_class($exporter->get('caller')), 'instance', true)) {
|
||||
print_error('noavailableplugins', 'portfolio');
|
||||
}
|
||||
$form .= $select;
|
||||
|
Loading…
x
Reference in New Issue
Block a user