
| 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 Skoda and Tim Hunt
|
| Security Level: |
None
|
| QA Assignee: |
Petr Skoda
|
| 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 » |
made changes - 12/May/08 06:44 PM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
made changes - 12/May/08 06:45 PM
made changes - 13/May/08 04:46 PM
|
QA Assignee
|
mjollnir
|
skodak
|
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
|