diff --git a/server/src/admin-schema.js b/server/src/admin-schema.js index 7378685..0846fb2 100644 --- a/server/src/admin-schema.js +++ b/server/src/admin-schema.js @@ -100,6 +100,10 @@ export const OPTION_QUERIES = { // What an organization cards section can hand-pick (067). card_orgs: "SELECT id, name || ' (' || kind || ')' AS label FROM organizations WHERE kind IN ('partner', 'ministry') ORDER BY kind, name", + // What an organizations content block can pick (093): every kind, + // a card needing no page of its own. + block_orgs: + "SELECT id, name || ' (' || kind || ')' AS label FROM organizations ORDER BY kind, name", event_scopes: "SELECT id, name AS label FROM event_scopes ORDER BY sort_order", events: "SELECT id, title AS label FROM events ORDER BY starts_on DESC, title", people: "SELECT id, display_name AS label FROM people ORDER BY sort_name, display_name", diff --git a/src/lib/adminSchema/shared.ts b/src/lib/adminSchema/shared.ts index 113332e..35fca8e 100644 --- a/src/lib/adminSchema/shared.ts +++ b/src/lib/adminSchema/shared.ts @@ -708,7 +708,7 @@ export const blocksChild = { path: "org_id", label: "Organization", widget: "select", - optionsFrom: "organizations", + optionsFrom: "block_orgs", fills: "text", required: true, help: "Shown as its card, in this order. An unpublished one is left out.",