Commit 831ca4f9 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1785924: display viewacl form - avoid checking values for the empty row

behatnotneeded

Change-Id: I41f94c21bf05d6fbdf7ff1d57ef97a0f5b7edda8
parent e8d5f530
......@@ -55,7 +55,7 @@ function pieform_element_viewacl(Pieform $form, $element) {
$lockedpreset = null;
if ($value) {
foreach ($value as $item) {
if (is_array($item)) {
if (is_array($item) && !empty($item['type'])) {
if ($item['type'] == 'public') {
$item['publicallowed'] = (int)$public;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment