Skip to content

Commit

Permalink
fixed search
Browse files Browse the repository at this point in the history
  • Loading branch information
Plone su Server Crul committed Nov 8, 2024
1 parent add32f6 commit ba613b9
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions rer/bandi/services/search_parameters/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def getVocabularyTermsForForm(vocab_name, context):
def getSearchFields():
request = getRequest()
portal = api.portal.get()

import pdb;pdb.set_trace()
return [
{
"id": "SearchableText",
Expand Down Expand Up @@ -111,17 +111,23 @@ def getSearchFields():
),
},
{
"id": "finanziatori",
"id": "finanziato",
"label": translate(
_("finanziatori_label", default="Financed by EU programmes",),
context=request,
),
"help": "",
"type": "select",
"multivalued": True,
"options": getVocabularyTermsForForm(
context=portal, vocab_name="rer.bandi.finanziatori.vocabulary"
),
"type": "checkbox",
"multivalued": False,
"options": [
{
"value": "Si",
},
{
"value": "No",
},
]

},
{
"id": "materie",
Expand Down

0 comments on commit ba613b9

Please sign in to comment.