Menu

#95 vocab for custom field to email

open
nobody
None
1
2020-03-31
2020-03-30
Delta
No

Hello,

Currently I have some custom fields. I have vocabulary for those custom fields, but when I send an email the custom fields don't show up like in the edit_entry page. Please help me.

Thanks

2 Attachments

Discussion

  • Delta

    Delta - 2020-03-30

    Sorry I created the wrong area

     
  • Campbell Morrison

    Some questions:

    1. Which version of MRBS are you using?
    2. What are your settings for (a) $mail_settings['admin_lang'], (b) $disable_automatic_language_changing, (c) $default_language_tokens and (d) $override_locale
    3. What are your browser language preferences as shown on the MRBS Help page?
     
    • Delta

      Delta - 2020-03-30
      1. I using version 1.8
      2. $mail_settings['admin_lang'] = 'en';
        $disable_automatic_language_changing = true;
        $default_language_tokens = "en";
        $override_locale = "en";
      3. My browser language preferences as shown on the MRBS Help page in English
       
  • Campbell Morrison

    This is a bug in MRBS. I have now (5c7ee8) fixed it in the default branch. You can patch your system by editing functions_mail.inc and replacing the code for the function get_mail_field_name() with

    function get_mail_field_name($table, $name)
    {
      global $db_tbl_prefix;
    
      $tag = utf8_substr($table, utf8_strlen($db_tbl_prefix));  // strip the prefix off the table name
      $tag .= "." . $name;           // add on the fieldname
      // then if there's a string in the vocab array for $tag use that
      // otherwise just use the fieldname
      return get_mail_vocab($tag);
    }
    
     
    • Delta

      Delta - 2020-03-31

      Thanks