Entity translation code needs to be updated due to changes in the ET code base:
- #1280546: Introduce a language selection widget for every entity introduced the possibility for entity translation handlers to wrap empty stub entities. This can cause the following warning to popup:
Undefined property: stdClass::$delta in EntityTranslationBeanHandler->getEntityId() (line 25 in [...]\sites\all\modules\bean\includes\translation.handler.bean.inc). - #1799770: Update id and bundle when setting a wrapped entity removed the
$entity_idargument from the default translation handler constructor. The bean translation handler needs to do the same to avoid PHP warnings.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | et-regression-fix-1799776-2.patch | 933 bytes | bforchhammer |
| #1 | et-regression-fix-1799776-1.patch | 509 bytes | bforchhammer |
Comments
Comment #1
bforchhammer commentedHere's a patch.
Comment #2
bforchhammer commentedUpdated patch to fix another regression added by #1799770: Update id and bundle when setting a wrapped entity (removed
$entity_idfrom constructor arguments).Comment #3
plachChanges look sensible to me.
Comment #4
indytechcook commentedThanks http://drupal.org/commitlog/commit/22232/a9f0b8abb650bf9e166553f37171c4e....
Comment #5
bforchhammer commentedAwesome, thanks :)
Comment #6.0
(not verified) commentedAdded 2nd ET regression