Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2512244-sponsorship_level_required-1.patch | 1.17 KB | BabaYaga64 |
Comments
Comment #1
BabaYaga64 CreditAttribution: BabaYaga64 commentedComment #2
BabaYaga64 CreditAttribution: BabaYaga64 commentedComment #3
BabaYaga64 CreditAttribution: BabaYaga64 commentedI 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.
Comment #4
japerryComment #5
hestenetBased 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.