Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
95c08e27
Commit
95c08e27
authored
Sep 13, 2019
by
M. Chardon
Browse files
correction bug annotation draft mutlipage
parent
6eb9a543
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/page_editor.php
View file @
95c08e27
...
...
@@ -252,7 +252,7 @@ class page_editor {
public
static
function
set_annotations
(
$gradeid
,
$pageno
,
$annotations
)
{
global
$CFG
,
$DB
;
$annotationsRelease
=
$DB
->
get_records
(
self
::
BDDTABLEANNOTATION
,
array
(
self
::
GRADEID
=>
$gradeid
,
self
::
DRAFLIB
=>
1
));
$annotationsRelease
=
$DB
->
get_records
(
self
::
BDDTABLEANNOTATION
,
array
(
self
::
GRADEID
=>
$gradeid
,
'pageno'
=>
$pageno
,
self
::
DRAFLIB
=>
1
));
$added
=
0
;
if
(
!
$annotationsRelease
||
sizeof
(
$annotationsRelease
)
==
0
||
$CFG
->
preserve_student_on_update
==
0
)
{
...
...
@@ -302,7 +302,6 @@ class page_editor {
return
$added
;
}
/**
* create an annotation for a draft
* @param annotation|record $annotationRecord annotation to create
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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