Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
Source: Node
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
4 Jun 2013 at 14:55 UTC
Updated:
2 Jul 2013 at 07:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirComment #2
berdirI think this is how it should be. This will probably fail tests but then our tests are wrong. And if it doesn't, then we need better test coverage.
Comment #3
cgalli commentedBefore patch: the translated field came back to review correctly, but it never showed up in the translated node.
After patch: the translation is saved to the correct node translation
RTBC assuming the test will pass eventually.
Comment #4
berdirNeeds work because the tests *did* pass.
Comment #5
berdirThat's why writing tests is important, fixed a stupid variable overwrite bug with multiple fields.
Cleaned up node source tests, they were quite a mess, nobody looked at those in ages.
Comment #6
miro_dietiker@param :-)
Otherwise (interdiff) looks fine.
Usually i would expect we use some kind of hook_info to define callbacks. There's no such here, right?
Comment #7
berdirIt is defined in an info hook. That hook is called hook_field_info(). You don't specify every callback there, it's based on the name. If you define field types and define the mymodule_field_update() function, it's called and otherwise it's not. No additional registration necessary.
Comment #8
berdirFixed typo and committed.