All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

multiple option separator

jerry.p 12 Jul 2012 18:10 problem, pending

We were having trouble getting the multiple checked options to print out in our templates and traced them back to the separator variable.

Version # 2.3.1

In line 323 the $sep variable is being set to the label instead of the actual character used to explode the saved string into an array.

I added some code to fix for the time being:

// Check separator value
$sep = $OBJ->get_setting('separator', $the_var['variable_settings']);
// -------------------------------------------------
// Fix
$sep_options = array(
'newline' => "\n",
'pipe' => '|',
'comma' => ','
);
$sep = $sep_options[$sep];
// -------------------------------------------------

I hope this helps anyone having the same trouble we were having.

Replies

  1. Low 13 Jul 2012 09:38

    Thanks for reporting. A slightly nicer fix (which I'm including in the next version) is to add this after line #323:

    $sep = $OBJ->separators[$sep];