Closed (fixed)
Project:
Title
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Sep 2012 at 09:58 UTC
Updated:
13 Jun 2014 at 23:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
peximo commentedHi, could you provide additional information (E.g. the replaced field configuration)?
I can't replicate the error.
Comment #2
brycesenz commentedCan you elaborate on what specifically you need?
I have a multilingual site set up with Entity Translation, and am using the Title module to support that translation. I also show the titles through the Views and Panels modules on most pages.
Comment #3
peximo commentedWith a clean installation of Drupal 7.15, Entity Translation 7.x-1.0-alpha2 and Title 7.x-1.0-alpha4 I can not reproduce the bug.
Can you add
debug($replacements);intitle_field_views_data_alter()under$replacements = title_field_replacement_info($ entity_type);(in title.views.inc) and post the output?Comment #4
FranciscoLuz commentedEntiry Translation ( http://drupal.org/project/entity_translation ) is the culprit. Once you enable it you will start getting the notice message every time you enable or disable a module and when flushing the cache.
The notice goes away after disabling the Entity Translation module.
Comment #5
FranciscoLuz commentedI've just updated both modules, Title to 7.x-1.x-dev 2012-Sep-16 and Entity Translation to 7.x-1.x-dev 2012-Sep-19, and it has apparently fixed it.
If anyone is still having this issue, please change the status back to active.
Comment #6
brycesenz commentedJust confirming that the solution worked for me.
Comment #8
ndobromirov commentedAdded a defensive check that will prevent the notices for misbehaving entity types.
Comment #9
plachLooks good, but please could you use "positive" if conditions? Using the
continuestatement makes the code harder to follow.Comment #10
ndobromirov commentedUploading new patch with the requested change.
Note:
I've added the continue statements as there was too much indentation already and I was going to add one more on top of it.
Comment #11
plachThanks!
Comment #12
plachCommitted and pushed, thanks!