Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 691cd371f034ba1d40d89bb3f808fe40e83e523b 1 parent 5f1d8f2
Adrian Greeve abgreeve authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/data/view.php
2  mod/data/view.php
View
@@ -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/locallib.php');
Please sign in to comment.
Something went wrong with that request. Please try again.