Users without the 'answer question' permission can't choose a category in which to ask their question, even when the "Only expert can categorize" option is disabled.

CommentFileSizeAuthor
#1 faq_ask_385650.patch726 bytesstella

Comments

stella’s picture

Status: Active » Fixed
StatusFileSize
new726 bytes

Try the attached patch, or the next dev release.

Cheers,
Stella

Anonymous’s picture

At least in my case now another bug is open:

Fatal error: [] operator not supported for strings in drupal-6.10/sites/all/modules/faq_ask/faq_ask.module on line 451

Proposed fix:

(file: faq_ask.module, line 444...)

      if ($params['category'] == -1) {
        $body = t('The following question has been posted.', NULL, $language->language);
      }
      else {
        $body = t('The following question has been posted in the "!cat" category.', array('!cat' => filter_xss($term->name)));
      }

into

      if ($params['category'] == -1) {
        $body[] = t('The following question has been posted.', NULL, $language->language);
      }
      else {
        $body[] = t('The following question has been posted in the "!cat" category.', array('!cat' => filter_xss($term->name)));
      }

--edit: I apologize, this should have gone to (and in fact now is) at #338165: "Give" anonymous page to expert.. I should avoid using multiple tabs.

nancydru’s picture

Thank you, Stella. I back ported this to 5.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.