Notice: Undefined index: in commerce_discount_default_rules_configuration() (line 26 of /home/xxxxx/domains/xxxxx.xx/public_html/sites/all/modules/commerce_discount/commerce_discount.rules_defaults.inc).
I've deleted all undefined tokens from rules and the message still apppear after run cron.

The problem also occur in Drupal 7.17
I did a fallback to Drupal 7.17 > I had a backup of the dB and the files and after run cron the error also appears.

Line 26 of commerce_discount/commerce_discount.rules_defaults.inc is somthing about de $offer_type:
$type = $types[$discount->type];
$wrapper = entity_metadata_wrapper('commerce_discount', $discount->name);
$offer_type = $offer_types[$wrapper->commerce_discount_offer->getBundle()];
$rule

CommentFileSizeAuthor
#2 scrsconti.jpg84.24 KBchirale

Comments

VanessaM’s picture

Priority: Normal » Critical

I have drupal 7.21 installed and I am also getting this error when attempting to create a discount

chirale’s picture

StatusFileSize
new84.24 KB

Same here with Drupal 7.22. It seems it is displayed one error message per discount.

lsolesen’s picture

Guessing that this is a duplicate of #1875524: Fixed Amount / Percentage Fields not shown when adding a discount. Could you all try the patch in that issue - and if it solves it close this issue as a duplicate?

bojanz’s picture

Status: Active » Closed (duplicate)

Yes, this is a duplicate.

bojanz’s picture

Issue summary: View changes

update: error not only in drupal 7.18 als in drupal 7.17