Merge branch 'MDL-34692' of git://github.com/raymondAntonio/moodle

This commit is contained in:
Sam Hemelryk 2012-09-12 10:22:54 +12:00
commit 223285a640

View File

@ -2578,8 +2578,9 @@ class assign {
$data = new stdClass();
$adminconfig = $this->get_admin_config();
$requiresubmissionstatement = !empty($adminconfig->requiresubmissionstatement) ||
$this->get_instance()->requiresubmissionstatement;
$requiresubmissionstatement = (!empty($adminconfig->requiresubmissionstatement) ||
$this->get_instance()->requiresubmissionstatement) &&
!empty($adminconfig->submissionstatement);
$submissionstatement = '';
if (!empty($adminconfig->submissionstatement)) {
@ -3277,8 +3278,9 @@ class assign {
$data = new stdClass();
$adminconfig = $this->get_admin_config();
$requiresubmissionstatement = !empty($adminconfig->requiresubmissionstatement) ||
$this->get_instance()->requiresubmissionstatement;
$requiresubmissionstatement = (!empty($adminconfig->requiresubmissionstatement) ||
$this->get_instance()->requiresubmissionstatement) &&
!empty($adminconfig->submissionstatement);
$submissionstatement = '';
if (!empty($adminconfig->submissionstatement)) {
@ -4016,8 +4018,9 @@ class assign {
// Submission statement.
$adminconfig = $this->get_admin_config();
$requiresubmissionstatement = !empty($adminconfig->requiresubmissionstatement) ||
$this->get_instance()->requiresubmissionstatement;
$requiresubmissionstatement = (!empty($adminconfig->requiresubmissionstatement) ||
$this->get_instance()->requiresubmissionstatement) &&
!empty($adminconfig->submissionstatement);
$draftsenabled = $this->get_instance()->submissiondrafts;