Skip to content

Commit

Permalink
add save_field flag to readonly/disabled field.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg authored Apr 28, 2017
1 parent e7b9d49 commit 6d5b496
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modified-field-types/readonly-field-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'description' => 'The value of this input should be saved somewhere else.',
'id' => '_jtcmb2_readonly',
'type' => 'text',
'save_field' => false, // Otherwise CMB2 will end up remove the value.
'attributes' => array(
'readonly' => 'readonly',
'disabled' => 'disabled',
Expand Down

0 comments on commit 6d5b496

Please sign in to comment.