FAQ FAQSearch by Soap

English! place to talk about development, programming and coding
Post Reply
katarrah
Znuny newbie
Posts: 2
Joined: 11 Feb 2015, 18:05
Znuny Version: 3.3.9

FAQ FAQSearch by Soap

Post by katarrah »

I try since some hours to pass the States to the FAQSearch by soap.
But it will ignored all the time. I found this in the FaqSerach.pm:

Code: Select all

if ( $Param{States} && ref $Param{States} eq 'HASH' && %{ $Param{States} } )
With my small perl knowledge i think that this is only true when its an associativ array so i tryd all to set this States param, but nothing works.
Here are the last try of the params:
[8] => SoapVar Object
(
[enc_type] => 101
[enc_value] => States
)

[9] => SoapVar Object
(
[enc_type] => 300
[enc_value] => Array
(
[0] => SoapVar Object
(
[enc_type] => 300
[enc_value] => Array
(
[2] => external
)

)

)

)
also tryd it like this:
[8] => SoapVar Object
(
[enc_type] => 101
[enc_value] => States
)

[9] => SoapVar Object
(
[enc_type] => 300
[enc_value] => Array
(
[2] => external
)

)
In the doc its declared like this:
States => { # (optional)
1 => 'internal',
2 => 'external',
},
can anyone help me? Have the same problem too with the FAQCount function.
katarrah
Znuny newbie
Posts: 2
Joined: 11 Feb 2015, 18:05
Znuny Version: 3.3.9

Re: FAQ FAQSearch by Soap

Post by katarrah »

i have an other problemm too :(
the serch by title and faqnumber is not working.

by title gives me results with some words and sometimes not with words that are in title.
the number search didnt work at all when i search *95 or *95* or 95 i get not result, but there is an entry with the number 00095

in the faqsearch file is:

Code: Select all

# search for the number
    if ( $Param{Number} ) {
        $Param{Number} =~ s/\*/%/g;
        $Param{Number} =~ s/%%/%/g;
        $Param{Number} = $Self->{DBObject}->Quote( $Param{Number}, 'Like' );
        if ($Ext) {
            $Ext .= ' AND';
        }
        $Ext .= " LOWER(i.f_number) LIKE LOWER('" . $Param{Number} . "') $Self->{LikeEscapeString}";
    }
can someone explain me what happend there?

thanks forward
Post Reply