Closed (fixed)
Project:
Simplenews
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
11 Feb 2013 at 12:30 UTC
Updated:
6 Mar 2013 at 20:30 UTC
Jump to comment: Most recent file
Notice: Undefined property: SimplenewsSubscriber::$newsletter_ids in party_simplenews_subscriptions_edit_form() (line 80 of /home/partyopoly/domains/partyopolydev.commonnonsense.co.uk/public_html/sites/all/modules/modified/party_simplenews/party_simplenews.pages.inc).
Warning: array_merge(): Argument #2 is not an array in array_merge() (line 80 of /home/partyopoly/domains/partyopolydev.commonnonsense.co.uk/public_html/sites/all/modules/modified/party_simplenews/party_simplenews.pages.inc).
Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 2288 of /home/partyopoly/domains/partyopolydev.commonnonsense.co.uk/public_html/includes/form.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1914110-1-add_newsletter_ids_property_to_SimplenewsSubscriber.patch | 524 bytes | andrewbelcher |
Comments
Comment #1
andrewbelcher commentedThe problem is
SimplenewsSubscriberdoesn't define the $newsletter_ids property, it just get's filled out inSimplenewsSubscriberController::attachLoad(). This means that when an entity is created rather than loaded, the property never gets set.I suppose module developers could always do an
isset(), but that seems a bit odd for a property that is vital to the functioning of a subscriber. The attached patch fixes it.Comment #2
andrewbelcher commentedLet's get it tested...
Comment #3
berdirThanks, commited!