Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-36915 - mod/data: A database with no entries no longer displays t…

…he export to portfolio button.
  • Loading branch information...
commit c7a34ab70477ba3ad11dc00a3f0c8bb05ce8a521 1 parent 1b696de
@abgreeve abgreeve authored samhemelryk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/data/view.php
View
2  mod/data/view.php
@@ -762,7 +762,7 @@
$records = array();
}
- if ($mode == '' && !empty($CFG->enableportfolios)) {
+ if ($mode == '' && !empty($CFG->enableportfolios) && !empty($records)) {
require_once($CFG->libdir . '/portfoliolib.php');
$button = new portfolio_add_button();
$button->set_callback_options('data_portfolio_caller', array('id' => $cm->id), 'mod_data');

0 comments on commit c7a34ab

Please sign in to comment.
Something went wrong with that request. Please try again.