Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
François Jacquet
rosariosis
Commits
45ed0248
Commit
45ed0248
authored
Jul 13, 2020
by
François Jacquet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SQL error foreign keys: Roll again Courses when rolling Marking Periods
parent
e12d9e31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
CHANGES.md
CHANGES.md
+1
-0
modules/School_Setup/Rollover.php
modules/School_Setup/Rollover.php
+8
-0
No files found.
CHANGES.md
View file @
45ed0248
...
...
@@ -10,6 +10,7 @@ Changes in 6.8
-
Fix #291 XSS Use URLEscape() for links href, program wide
-
Fix hide remove button for "No Address" in Address.inc.php
-
Prompt() make Cancel primary button in Prompts.php
-
Fix SQL error foreign keys: Roll again Courses when rolling Marking Periods in Rollover.php
Changes in 6.7.2
----------------
...
...
modules/School_Setup/Rollover.php
View file @
45ed0248
...
...
@@ -95,6 +95,14 @@ if ( Prompt(
$_REQUEST
[
'tables'
][
'REPORT_CARD_COMMENTS'
]
=
'Y'
;
}
if
(
$_REQUEST
[
'tables'
][
'SCHOOL_MARKING_PERIODS'
]
&&
$exists_RET
[
'COURSES'
][
1
][
'COUNT'
]
&&
!
$_REQUEST
[
'tables'
][
'COURSES'
]
)
{
// Fix SQL error foreign keys: Roll again Courses when rolling Marking Periods.
$_REQUEST
[
'tables'
][
'COURSES'
]
=
'Y'
;
}
if
(
!
(
$_REQUEST
[
'tables'
][
'COURSES'
]
&&
(
(
!
$_REQUEST
[
'tables'
][
'STAFF'
]
&&
$exists_RET
[
'STAFF'
][
1
][
'COUNT'
]
<
1
)
||
(
!
$_REQUEST
[
'tables'
][
'SCHOOL_PERIODS'
]
&&
$exists_RET
[
'SCHOOL_PERIODS'
][
1
][
'COUNT'
]
<
1
)
...
...
Write
Preview
Markdown
is supported
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