v0.1.9
Orangescrum Community Edition v0.1.9
Patch release.
A regular user (user_type 3) in a company with no active owner or admin
got a 500 on every page that renders the New Project popup - the
dashboard, About, Tasks and the profile page among them:
TypeError: Cake\View\Helper\TextHelper::truncate(): Argument #1 ($text)
must be of type string, null given
getProjectOwnAdmin() excludes user_type 3, so in such a company it
returns nothing. The fallback then assigned the current user's record to
$projOwnAdmin unwrapped, rather than as a one-element list the way the
other branch does, so the template iterated one level too shallow and the
name resolved to null.
The record is now wrapped so both branches produce the same shape, and
the template treats a missing name as an empty label rather than a fatal.
Verified in three states, before and after:
regular user, no active owner/admin 500 -> 200 on four pages
regular user, active owner present 200 -> 200, row "name (You)"
owner 200 -> 200, row "name (owner)"
No new lines in the error log in any state. No schema change.
ASSET_RELEASE stays at 94.