Index: editlib.php =================================================================== RCS file: /cvsroot/moodle/moodle/question/editlib.php,v retrieving revision 1.76.2.5 diff -u -r1.76.2.5 editlib.php --- editlib.php 28 Feb 2008 12:52:59 -0000 1.76.2.5 +++ editlib.php 20 Mar 2008 15:37:12 -0000 @@ -477,8 +477,7 @@ // for each question either hide it if it is in use or delete it foreach ($questionlist as $questionid) { question_require_capability_on($questionid, 'edit'); - if (record_exists('quiz_question_instances', 'question', $questionid) or - record_exists('question_states', 'originalquestion', $questionid)) { + if (record_exists('quiz_question_instances', 'question', $questionid)) { if (!set_field('question', 'hidden', 1, 'id', $questionid)) { question_require_capability_on($questionid, 'edit'); error('Was not able to hide question'); @@ -538,8 +537,7 @@ if (preg_match('!^q([0-9]+)$!', $key, $matches)) { $key = $matches[1]; $questionlist .= $key.','; question_require_capability_on($key, 'edit'); - if (record_exists('quiz_question_instances', 'question', $key) or - record_exists('question_states', 'originalquestion', $key)) { + if (record_exists('quiz_question_instances', 'question', $key)) { $questionnames .= '* '; $inuse = true; }