Commit 45ed0248 authored by François Jacquet's avatar François Jacquet

Fix SQL error foreign keys: Roll again Courses when rolling Marking Periods

parent e12d9e31
......@@ -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
----------------
......
......@@ -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 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment