
| Key: |
MDL-14797
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Tim Hunt
|
| Reporter: |
Tim Hunt
|
| Votes: |
0
|
| Watchers: |
1
|
|
|
| Database: |
PostgreSQL
|
| Participants: |
Petr Škoda (skodak) and Tim Hunt
|
| Security Level: |
None
|
| QA Assignee: |
Petr Škoda (skodak)
|
| Resolved date: |
12/May/08
|
| Affected Branches: |
MOODLE_19_STABLE
|
| Fixed Branches: |
MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
|
The code was
if ($sortorder === false) {
however, on Postgres (at lease)
get_field_sql('SELECT MIN(sortorder)-1 AS min
FROM ' . $CFG->prefix . 'course WHERE category=' . $categoryid);
returns NULL, not false, if the category you are moving to is empty.
|
|
Description
|
The code was
if ($sortorder === false) {
however, on Postgres (at lease)
get_field_sql('SELECT MIN(sortorder)-1 AS min
FROM ' . $CFG->prefix . 'course WHERE category=' . $categoryid);
returns NULL, not false, if the category you are moving to is empty. |
Show » |
|