Skip to content

Commit

Permalink
allow process of changes if fieldLocks is null
Browse files Browse the repository at this point in the history
  • Loading branch information
catsoup11789 committed Jun 20, 2024
1 parent 9bc7293 commit 5e2a1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/web/sys/DataObjectUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static function validateObject($structure, $object) {

static function updateFromUI($object, $structure, $fieldLocks) {
foreach ($structure as $property) {
if ($fieldLocks != null && !in_array($property['property'], $fieldLocks)) {
if (($fieldLocks != null && !in_array($property['property'], $fieldLocks)) || $fieldLocks == null) {
DataObjectUtil::processProperty($object, $property, $fieldLocks);
}
}
Expand Down

0 comments on commit 5e2a1e1

Please sign in to comment.