Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-mod_pdfannotator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-mod_pdfannotator
Commits
c1c3c45b
Unverified
Commit
c1c3c45b
authored
4 years ago
by
Friederike
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #50 from liip-elearning/fix-psql-backup
Fix SQL values' quoting, to fix module backup under PostgreSQL
parents
e673b971
bef3712d
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
backup/moodle2/backup_pdfannotator_stepslib.php
+1
-1
1 addition, 1 deletion
backup/moodle2/backup_pdfannotator_stepslib.php
with
1 addition
and
1 deletion
backup/moodle2/backup_pdfannotator_stepslib.php
+
1
−
1
View file @
c1c3c45b
...
@@ -97,7 +97,7 @@ class backup_pdfannotator_activity_structure_step extends backup_activity_struct
...
@@ -97,7 +97,7 @@ class backup_pdfannotator_activity_structure_step extends backup_activity_struct
// Add all annotations specific to this annotator instance.
// Add all annotations specific to this annotator instance.
$annotation
->
set_source_sql
(
'SELECT a.* FROM {pdfannotator_annotations} a '
$annotation
->
set_source_sql
(
'SELECT a.* FROM {pdfannotator_annotations} a '
.
'JOIN {pdfannotator_comments} c ON a.id = c.annotationid '
.
'JOIN {pdfannotator_comments} c ON a.id = c.annotationid '
.
'
WHERE a.pdfannotatorid = ? AND c.isquestion =
"1"
AND (c.visibility =
"
public
"
OR c.visibility =
"
anonymous
"
)
'
,
.
"
WHERE a.pdfannotatorid = ? AND c.isquestion =
1
AND (c.visibility =
'
public
'
OR c.visibility =
'
anonymous
'
)
"
,
array
(
'pdfannotatorid'
=>
backup
::
VAR_PARENTID
));
array
(
'pdfannotatorid'
=>
backup
::
VAR_PARENTID
));
// Add any subscriptions to this annotation.
// Add any subscriptions to this annotation.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment