Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
moodle-assignsubmission_dta
Commits
df3f0323
Commit
df3f0323
authored
Oct 21, 2025
by
Abhishek
Browse files
minor change
parent
81a33738
Pipeline
#12019
passed with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dta/db/services.php
View file @
df3f0323
...
...
@@ -19,7 +19,7 @@ defined('MOODLE_INTERNAL') || die();
*/
$functions
=
[
// This is our new, dedicated function to save a DTA submission.
// This is our new, dedicated function to save a DTA submission.
.
// It bypasses the problematic core 'mod_assign_save_submission' function.
'assignsubmission_dta_save_submission'
=>
[
'classname'
=>
'assign_submission_dta_external'
,
...
...
@@ -28,4 +28,4 @@ $functions = [
'type'
=>
'write'
,
'ajax'
=>
true
,
]
];
\ No newline at end of file
];
dta/externallib.php
View file @
df3f0323
...
...
@@ -75,7 +75,7 @@ class assign_submission_dta_external extends external_api {
$dta_plugin
=
new
assign_submission_dta
(
$assignment
,
$submission
);
// Create a data object that mimics what a Moodle form would submit.
// The key 'tasks_filemanager' is critical and comes from your locallib.php.
// The key 'tasks_filemanager' is critical and comes from your locallib.php.
.
$data
=
new
stdClass
();
$data
->
tasks_filemanager
=
$itemid
;
...
...
@@ -92,4 +92,4 @@ class assign_submission_dta_external extends external_api {
public
static
function
save_submission_returns
():
external_value
{
return
new
external_value
(
PARAM_BOOL
,
'True if the submission was saved successfully.'
);
}
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment