When a variant has no context, there is no form element for 'substitute' added in ctools_custom_content_type_edit_form().
So when ctools_custom_content_type_edit_form_submit() checks for each of the defaults, it throws an undefined index error.

CommentFileSizeAuthor
#1 ctools-1468928-1.patch665 bytesdead_arm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dead_arm’s picture

Status: Active » Needs review
FileSize
665 bytes

If the key isn't in the submitted values, use the defaults.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Looks good from here.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed! Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.