As an editor I want to reject a translation and allow the translator to improve his work in order to maintian text quality.

Comments

corvus_ch’s picture

StatusFileSize
new24.54 KB

Work in progress. I post here, for I can not continue with this for the next weeks.

berdir’s picture

Status: Active » Needs review

Just want to see what the test bot has to say about it.

Status: Needs review » Needs work

The last submitted patch, tmgmt-1594416-1.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new24.09 KB

Ok, 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.

berdir’s picture

Status: Needs review » Fixed

Going 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.