Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
Translator: Nativy
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 May 2012 at 11:26 UTC
Updated:
6 Jul 2012 at 13:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
corvus_ch commentedWork in progress. I post here, for I can not continue with this for the next weeks.
Comment #2
berdirJust want to see what the test bot has to say about it.
Comment #4
berdirOk, this should pass.
Was quite a nasty problem but once I've seen it, rather obvious.
tmgmt_ensure_keys_array('') resulted in array(0 => '') instead of array(), so the empty($key) was FALSE. Which in turn meant that nothing was saved anymore because it then tried array_shift() on that, key 0 didn't exist and it didn't anything.
Comment #5
berdirGoing to open a follow-up issue to add tests for the reject and approve functionaliy (a small part is already tested in the new permission tests), commited this patch. Thanks.