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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
                }