Bug 23272: (RM followup) Fix edit action
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 27 Sep 2019 11:53:46 +0000 (12:53 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 27 Sep 2019 11:56:13 +0000 (12:56 +0100)
commit148f35963d5eae1f9eabc0c7cb0b69cd7056b020
tree5caf0ab3f1b4122c8a21fd71ddbde516789b0f8f
parentd79fd755e4c19c70aa5df49783d6615a6f20041f
Bug 23272: (RM followup) Fix edit action

This bug introduced a regression whereby if an authorized value has no
branch limitations then the authorized value cannot be edited once it
has been created. The edit page would display an error and not load.

This is the second case of a simple ternary correcting the issue, but
the logic of returning 'undef' from 'get_branch_limits' being called
into question.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
admin/authorised_values.pl