Closed (fixed)
Project:
Feeds: Entity Translation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2012 at 11:42 UTC
Updated:
3 May 2012 at 16:40 UTC
I think entity translation doesn't create if imported value of translation is empty.
diff --git a/feeds_et.mappers.inc b/feeds_et.mappers.inc
index 083cabe..ee1ef9b 100644
--- a/feeds_et.mappers.inc
+++ b/feeds_et.mappers.inc
@@ -34,7 +34,7 @@
* Callback for mapping text fields.
*/
function _feeds_et_field_feeds_set_target_text($source, $entity, $target, $value) {
- if (!is_array($value)) {
+ if (!is_array($value) && $value !== '') {
$value = array($value);
}
// Process the target name and language
Comments
Comment #1
mohammed j. razemCommitted to dev