status editable

[``* `#17013` status editable``](http://community.openproject.org/work_packages/17013)

Don't make functions within a loop.