Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
Source: Entity
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Jul 2015 at 07:21 UTC
Updated:
7 Sep 2015 at 20:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miro_dietikerNote this affects
JobInterface::acceptTranslation
SourcePluginInterface::saveTranslation
LocaleSource::updateTranslation
Comment #2
giancarlosotelo commentedComment #3
giancarlosotelo commentedUploading a testonly patch.
I also checked a fatal error when a
Config Entityis deleted. Is quite different fromContent Entitybecause of theConfigMapperthat throws an exception so I added a try/catch to show a message and avoid the fatal error.About
LocaleSourceI checked and seems that no changes are needed.Tests are going to fail because of recent core changes, but some feedback is appreciated.
Comment #4
giancarlosotelo commentedSomething was wrong
Comment #8
juanse254 commentedCan we split this to make it more readable?
Remove empty line?
I guess here we are trying to delete/test a node without an entity, not testing a translation of a deleted entity.
Guess you merge this and save a line. ex: $val . '/translatable'
The proper way would be [] .
Besides that the tests are failing due to #2553801: SafeMarkup Change, tmgmt broken so as soon as that gets fixed the tests are going to pass.
Comment #9
giancarlosotelo commented1 . Splitted.
2. I think there is no empty line.
3. A better description.
4. Merged.
5. In the whole test
array()is used so I think it doesn't matter.Still waiting for the fix in the head.
Comment #10
giancarlosotelo commentedComment #13
juanse254 commentedLooking good now.
Comment #14
miro_dietikerI prefer to have early exits and streamline the remaining steps on the higher level without indentation.
Also fixed some unclean return value declaration and its minimal implementation.
Comment #16
miro_dietikerOopsie, some accidental change. :-)
Comment #17
miro_dietikerCommitted.