Skip to content
Snippets Groups Projects
Commit 4834839e authored by Hamza Remmal's avatar Hamza Remmal
Browse files

Check that the plugin is enabled upon deletion of an assignment

parent e8a821a0
No related branches found
No related tags found
1 merge request!242Check that the plugin is enabled upon deletion of an assignment
Pipeline #207765 failed
......@@ -13,7 +13,7 @@
<!-- HR : Project definition-->
<groupId>ch.epfl.autograde</groupId>
<artifactId>autograde-service</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
<name>autograde-service</name>
<description>
......
......@@ -6,7 +6,7 @@
<groupId>ch.epfl.autograde</groupId>
<artifactId>autograde-submission-manager</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
......
......@@ -194,8 +194,10 @@ final class assign_submission_autograde extends assign_submission_plugin
* @throws moodle_exception
*/
public function delete_instance(): bool {
$client = new autograde_webservice();
$client->delete_assignment($this->assignment->get_instance()->id);
if ($this->is_enabled()) {
$client = new autograde_webservice();
$client->delete_assignment($this->assignment->get_instance()->id);
}
return true;
}
......
......@@ -25,10 +25,10 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2024083000; // HR : August 30th, 2024
$plugin->version = 2024090900; // HR : September 9th, 2024
$plugin->requires = 2022112800; // HR : Moodle 4.1.0 (https://moodledev.io/general/releases#moodle-41-lts)
$plugin->maturity = MATURITY_RC;
$plugin->release = '1.1.0';
$plugin->release = '1.1.1';
$plugin->component = 'assignsubmission_autograde';
$plugin->dependencies = array(
'mod_assign' => '2022112800',
......
......@@ -6,7 +6,7 @@
<!-- HR : Project definition-->
<groupId>ch.epfl.autograde</groupId>
<artifactId>autograde</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
<name>autograde</name>
<packaging>pom</packaging>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment