MDL-48477 questions: no delete icon for only top-level category
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 12 Jan 2015 13:18:49 +0000 (13:18 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 15 Jan 2015 10:20:47 +0000 (10:20 +0000)
commit6403c8d39b07dafb277679910ea8e7b914112739
treeb984f7513b3ccd8d57a4ce5cf5213db4b2c64fe6
parentda0ef2e4cf9c02cfa0444814b4e6e9b2cb000cd6
MDL-48477 questions: no delete icon for only top-level category

The back end code already threw an exception if you clicked the icon,
so you could not delete the category, but we should not have shown the
icon in the first place.

Thanks to Pramith Dayananda for working out the fix for this issue. I am
just committing it.
question/category_class.php