Skip to content

Optional FAQID param in FAQSearch function.#64

Open
stefane2741 wants to merge 1 commit into
masterfrom
faq-search-by-id
Open

Optional FAQID param in FAQSearch function.#64
stefane2741 wants to merge 1 commit into
masterfrom
faq-search-by-id

Conversation

@stefane2741

Copy link
Copy Markdown
Contributor

No description provided.


ServiceID => $ServiceID, # (optional)

# Use FAQSearch as an FAQ filter on a single FAQ item,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*a FAQ, if I am not mistaken

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would depend on how the word FAQ sounds phonetically, not necessarily how it's spelled.

I figured it starts with a pronounced "eff..." and so it is preceded by an "an". :)


# Limit the search to just one (or a list) FAQID (used by the otobo-ai package
# to filter for events on single FAQ items with the job's FAQ filter).
if ( IsStringWithData( $Param{FAQID} ) || IsArrayRefWithData( $Param{FAQID} ) ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsInteger would be more suitable as you are later quoting it as Integer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds good to me. Maybe it's worth considering changing it in Kernel::System::Ticket::TicketSearch aswell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants