Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Greeve abgreeve authored samhemelryk committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/data/view.php
2  mod/data/view.php
@@ -762,7 +762,7 @@
762 762 $records = array();
763 763 }
764 764
765   - if ($mode == '' && !empty($CFG->enableportfolios)) {
  765 + if ($mode == '' && !empty($CFG->enableportfolios) && !empty($records)) {
766 766 require_once($CFG->libdir . '/portfoliolib.php');
767 767 $button = new portfolio_add_button();
768 768 $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.