MDL-14591: portfolio - fixing regression I introduced when refactoring
This commit is contained in:
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user