Commit ff55d1cd authored by Lisa Backer's avatar Lisa Backer
Browse files

Issue #2546452 by eshta: Fix PHP error when lock step variation set options do...

Issue #2546452 by eshta: Fix PHP error when lock step variation set options do not have identical indexes.
parent 9722f39f
Loading
Loading
Loading
Loading
+2 −0
Changes for acquia_lift.admin.inc: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1373,9 +1373,11 @@ function acquia_lift_implement_targeting($agent) {
  // Go through any other option sets for this personalization, assign the same
  // decision name and option IDs to each of them, and copy the targeting infor-
  // mation to them.
  $targeting_option_set->options = array_values($targeting_option_set->options);
  foreach ($all_option_sets as $os) {
    if ($os->osid != $targeting_option_set->osid) {
      $os->targeting = $targeting_option_set->targeting;
      $os->options = array_values($os->options);
      foreach ($os->options as $i => &$option) {
        $option['option_id'] = $targeting_option_set->options[$i]['option_id'];
      }