When adding a sponsor- and before adding a sponsorship level - I get the following error:

Notice: Undefined offset: 0 in cod_sponsors_commerce_views_handler_field_order_link->render() (line 37 of /Users/bojanaskarich/Sites/cod/repos/modules/contrib/cod_support/cod_sponsors/modules/cod_sponsors_commerce/views/cod_sponsors_commerce_views_handler_field_order_link.inc).

When I assign a sponsor to a sponsorship level, this error goes away.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BabaYaga64’s picture

Title: Undefined offset error when adding sponsors without a sponsorship levels » Undefined offset error when adding sponsors without sponsorship levels
BabaYaga64’s picture

BabaYaga64’s picture

Status: Active » Needs review
FileSize
1.17 KB

I have set sponsorship level as a required field in the Add a Sponsor form page. I have also added text that says users must create a sponsorship level first, before adding any sponsors. These changes were exported to the COD_Sponsors Feature. See patch below.

As a next step, it's possible to add an inline entity form.

japerry’s picture

Issue tags: +cod 7.x-1.0 radar
hestenet’s picture

Based on discussion of use case where a user may purchase a sponsorship on the site - we probably do not want the inline edit feature for adding a sponsorship level if there is none.

So this original patch just needs review.