1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

Incorrect display of Email Parser Rules

Discussion in 'Using Kayako Classic' started by Evgeny Kuchkov, Sep 23, 2019.

  1. Evgeny Kuchkov

    Evgeny Kuchkov Established Member

    When you edit email parser rule under Actions tab of post-parse everything is selected by default --no change-- even if it was configured beforehand.

    This is caused by incorrect $_POST array in public function Select() in __swift/apps/base/library/UserInterface/class.SWIFT_UserInterfaceTab.php
    $_POST
    has:
    array (
    'replycontents' => '',
    'forwardemail' => '',
    'ignore' => '0',
    'noautoresponder' => '0',
    'noalertrules' => '0',
    'noticket' => '0',
    'tickettypeid' => '0',
    'slaplanid' => '0',
    'flagtype' => '0',
    'staffid' => '0', // <=== this should be '4'
    'ticketpriorityid' => '0',
    'ticketstatusid' => '0', // <=== this should be '1'
    'departmentid' => '0',
    'addtags' =>


    which breaks this:
    if (((isset($_POST[$_name]) && $_POST[$_name] == $_val['value']) || (!isset($_POST[$_name]) && isset($_val['selected']) && $_val['selected'] == true)) && $_optionSelected == false) {
    $_outputData .= ' selected';
    $_optionSelected = true;
    }

    Unfortunately I cannot find where this $_POST is being generated. Debugger in browser didn't help at all. I suggest it's somewhere in JS but I cannot find it.

    Any help would be appreciated.
     
  2. Gurpreet Singh

    Gurpreet Singh Staff Member

    Hello Evegeny,

    Greetings for the day!

    May I know the version of Kayako you are running? I guess, it was a known issue and the team has already fixed it.

    Once you will confirm me the build version, I can let you know if this is something we have already fixed.

    Looking forward to your response.

    Kind regards,
     
  3. Evgeny Kuchkov

    Evgeny Kuchkov Established Member

    I have already fixed it by myself
    __apps/parser/admin/class.Controller_Rule.php
    // replace ?? with ?:
    protected function _ProcessActionContainerToPOST(
    ...
    switch ($_pointer) {
    case 1:
    $_POST[$_key] ?: $_POST[$_key] = $_val['typedata'];
    break;
    ...
     
    Gurpreet Singh likes this.
  4. Evgeny Kuchkov

    Evgeny Kuchkov Established Member

    btw found couple more bugs in .93.0
     
  5. Gurpreet Singh

    Gurpreet Singh Staff Member

    Oops! Did you log a support request with the issue details? I can take a look and check the status for those.

    Kind regards,
     
  6. Evgeny Kuchkov

    Evgeny Kuchkov Established Member

    nope, already fixed all of them by myself :)
     

Share This Page