Skip to content

Commit

Permalink
Merge pull request #37 from rabauss/feature/boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vo authored Jul 18, 2022
2 parents 0428b00 + 9f82f93 commit 5910d1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resources/contao/dca/tl_mvo_facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,15 @@ function () {
'import_enabled' => [
'label' => &$GLOBALS['TL_LANG']['tl_mvo_facebook']['import_enabled'],
'exclude' => true,
'default' => false,
'default' => 0,
'inputType' => 'checkbox',
'eval' => ['isBoolean' => true],
'save_callback' => [
function ($value) {
return '1' === $value;
},
],
'sql' => ['type' => 'boolean', 'default' => false],
],
'upload_directory' => [
'label' => &$GLOBALS['TL_LANG']['tl_mvo_facebook']['upload_directory'],
Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/dca/tl_mvo_facebook_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
'visible' => [
'inputType' => 'checkbox',
'eval' => ['isBoolean' => true],
'sql' => ['type' => 'boolean', 'default' => false],
],
'fb_event_id' => [],
'start_time' => [],
Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/dca/tl_mvo_facebook_post.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
'visible' => [
'inputType' => 'checkbox',
'eval' => ['isBoolean' => true],
'sql' => ['type' => 'boolean', 'default' => false],
],
'fb_post_id' => [],
'type' => [],
Expand Down

0 comments on commit 5910d1b

Please sign in to comment.