merge: retain installed funding correction alongside isolated sector QA
This commit is contained in:
@@ -155,6 +155,10 @@ final class FundingProgrammeController extends Controller
|
||||
'sector' => ['nullable', 'integer', Rule::in(Sector::choices()->whereNotNull('published_at')->pluck('id')->all())],
|
||||
'certainty' => 'nullable|in:include_unknown,documented', 'state' => 'nullable|in:open,closed,upcoming,unknown']);
|
||||
$filters = array_filter($filters, fn ($value) => $value !== null && $value !== '');
|
||||
// A local search excludes unlocated records unless explicitly requested.
|
||||
if (($filters['location_mode'] ?? '') === 'physical' && ! isset($filters['certainty'])) {
|
||||
$filters['certainty'] = 'documented';
|
||||
}
|
||||
$dossier = $request->user() && ! empty($filters['context']) ? app(FundingDossierPreparation::class)->context($request->user(), $filters['context'], $filters['opportunity'] ?? null) : null;
|
||||
$explicitLocation = $request->hasAny(['territory', 'province_id', 'district_id', 'admin_post_id', 'locality_id']);
|
||||
if ($dossier && ! $explicitLocation && empty($filters['territory']) && $dossier['territory']) {
|
||||
|
||||
Reference in New Issue
Block a user