Skip to content

Commit

Permalink
Fix: set(false) fields would throw an error as we incorrectly attem…
Browse files Browse the repository at this point in the history
…pted to read a "set" value from them
  • Loading branch information
AllanJard committed Jul 6, 2021
1 parent e8f05ee commit 931b293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Editor.php
Expand Up @@ -1199,7 +1199,9 @@ private function _insert( $values )
// submitted values
$all = array();
foreach ($this->_fields as $field) {
$this->_writeProp($all, $field->name(), $field->val( 'set', $values ));
if ($field->apply('set', $values)) {
$this->_writeProp($all, $field->name(), $field->val( 'set', $values ));
}
}

// Only allow a composite insert if the values for the key are
Expand Down

0 comments on commit 931b293

Please sign in to comment.