I missed the fact that non-admin users need to have "administer FAQ" in addition to "answer a question" permissions, otherwise when they visit this page to answer questions:

faq_ask/more

The following error appears:

"user warning: Unknown column 'n.created' in 'order clause' query: SELECT * FROM faq_expert WHERE uid=2 ORDER BY n.created ASC in /home/user/public_html/includes/database.mysql.inc on line 172.

For some strange reason, I couldn't find any categories for you."

Comments

nancydru’s picture

Assigned: Unassigned » nancydru

That shouldn't be the case. I'll take a look at it.

nancydru’s picture

"Administer FAQ" is only applicable if you want them to be able to edit an unanswered question.

However, the query is incorrect. You can remove "ORDER BY n.created ASC" entirely. I must have been really tired when I did that.

The fix will be committed when I figure out the dependency issue.

scedwar’s picture

That links in with confusing behaviour (IMHO):

- if you click on the question in the block, you get presented with the form to answer the question. WHEREAS
- if you click on more in the block, then the question, you are presented with the option to edit the question, but not give the answer.

Perhaps the list should display links to the questions also, and if the author has the administer FAQ question they can edit the question?

nancydru’s picture

Hmm, that's strange because they use the same code. I'll have to see why you're getting what you're getting. But I think this should be a new issue.

I committed the fix for the original problem.

nancydru’s picture

Status: Active » Needs work
nancydru’s picture

Status: Needs work » Fixed

Fix committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

nancydru’s picture

Fixed for 6.x