Skip to content

Commit

Permalink
fix numfmt error when pager limit is set in Civi settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaphoneJon committed Nov 28, 2022
1 parent f936e84 commit cd47115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function fallbackDefault(GenericHookEvent $e) {
$e->display['settings'] += [
'description' => $e->savedSearch['description'] ?? NULL,
'sort' => [],
'limit' => \Civi::settings()->get('default_pager_size'),
'limit' => (int) \Civi::settings()->get('default_pager_size'),
'pager' => [
'show_count' => TRUE,
'expose_limit' => TRUE,
Expand Down
2 changes: 1 addition & 1 deletion ext/search_kit/Civi/Search/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getAdminSettings():array {
'functions' => self::getSqlFunctions(),
'displayTypes' => Display::getDisplayTypes(['id', 'name', 'label', 'description', 'icon']),
'styles' => \CRM_Utils_Array::makeNonAssociative(self::getStyles()),
'defaultPagerSize' => \Civi::settings()->get('default_pager_size'),
'defaultPagerSize' => (int) \Civi::settings()->get('default_pager_size'),
'defaultDisplay' => SearchDisplay::getDefault(FALSE)->setSavedSearch(['id' => NULL])->execute()->first(),
'modules' => $extensions,
'defaultContactType' => \CRM_Contact_BAO_ContactType::basicTypeInfo()['Individual']['name'] ?? NULL,
Expand Down

0 comments on commit cd47115

Please sign in to comment.