We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a440fd3 commit eea8a8eCopy full SHA for eea8a8e
src/Ushahidi/Modules/V5/Repository/Survey/EloquentSurveyRepository.php
@@ -77,8 +77,18 @@ public function paginate(
77
$query->with($with);
78
}
79
$query->distinct();
80
+
81
+ $results = $query->paginate($paging->getLimit() ? $paging->getLimit() : config('paging.default_laravel_pageing_limit'));
82
- return $query->paginate($paging->getLimit());
83
+ if ($search_fields->showUnknownForm) {
84
+ $results->push((new Survey)->fill([
85
+ 'id' => 0,
86
+ 'name' => 'Unknown Form',
87
+ 'base_language' => 'en',
88
+ ]));
89
+ }
90
91
+ return $results;
92
93
94
private function addSurveyTableNamePrefix($fields)
0 commit comments