piersharding / moodle-tool_uploadcourse

** Note** this is now in Moodle core as of 2.6. Moodle Admin Tools plugin for basic upload of course outlines, and applying templates using Moodle course backup files
21 stars 12 forks source link

When visible field is used in csv, Availability dropdown box in Upload courses preview is blank #3

Closed matangdilis closed 11 years ago

matangdilis commented 11 years ago

minor issue. tested in moodle 2.2 and 2.3.

tool_uploadcourse version = 2012112300

When "visible" set to 0 or 1 is used in csv, the dropdown box for "Availability" in "Upload courses preview" web page is blank or it does not appear. But the course is uploaded with the proper visibility setting.

piersharding commented 11 years ago

Does it appear as 0 or 1 in the DB? And what is the data type for the column - under PostgreSQL it is smallint so values of 0 or 1 should be correct.

Cheers, Piers Harding.

matangdilis commented 11 years ago

Hi, The DB is okay. It's just I got confused with the "Upload courses preview" page display because I tested with one course. I was expecting a dropdown box for Availability to appear with the selections "This course is available to students" and "This course is not available to students". That's what is not appearing when visible is in the csv, and the page looks broken (at least from my perspective). But if there were a lot more courses with varying visibility then the Availability dropdown menu would not be able to reflect the list and I should refer to the table.

I'm closing this now. Thank you for the reply.