cancel
Showing results for 
Search instead for 
Did you mean: 

Saved advanced search with custom list property

nico73
Champ in-the-making
Champ in-the-making
Hi,

I have a problem with my saved advanced search.

I made an advanced search on a custom type which have a list property (it's a 'status' property with a constraint listing his different values : 'draft', 'active', 'refused', 'old').

I select the value 'refused' for example, execute the search and save it. If I look at the advanced search object, I see that Alfresco had correctly saved the search (the lucene request is ok). But if I reload the advanced search page and select my saved search , the value 'refused' isn't any more selected (before loading my saved search, I have selected the 'draft' value in order to really see the change)…

Someone can reproduce this ? (I'm using Alfresco 2.1)
3 REPLIES 3

steuni
Champ in-the-making
Champ in-the-making
Same with me on 2.1.
I have 4 additional properties:
* One is a d:text named ged:accountNumber
* Three others are d:text with list constraints: ged:documentType, ged:rectoVerso, ged:accountStatus

The generated XML file, when searching on these four additional properties:

<search>
<text></text>
<mode>0</mode>
<categories/>
<content-type>{http://www.alfresco.org/model/content/1.0}content</content-type>
<folder-type>{http://www.alfresco.org/model/content/1.0}folder</folder-type>
<attributes>
<attribute name="ged:accountNumber">12345R6</attribute>
</attributes>
<ranges/>
<fixed-values>
<value name="ged:documentType">OUV    - Ouverture de compte</value>
<value name="ged:rectoVerso">Verso</value>
<value name="ged:accountStatus">Compte Actif</value>
</fixed-values>
<query>
+@\{ged\}accountNumber:12345R6  +@\{ged\}documentType:"OUV    - Ouverture de compte" +@\{ged\}rectoVerso:"Verso" +@\{ged\}accountStatus:"Compte Actif" AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content"  OR  TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))
</query>
</search>

The search works fine, but when I save and reload it, only the field named ged:accountNumber is filled in.

Thanks,

– Jerome

gavinc
Champ in-the-making
Champ in-the-making
This sounds like a bug, please raise this in JIRA so you can track it's progress.

steuni
Champ in-the-making
Champ in-the-making
[ALF-JIRA] Created: (AWC-1530) Saved search does not work for custom properties of type d:text with list constraint