>>Ajdin Brandic wrote:
>> In my class I have a property which is displayed as a dropdown
select.
>> I replaced one of the values and I can still see that value together 
>> with the new one.
>> 
>> Replaced Values
>> None|CC-BY-NC-SA
>> (recommended)|CC-BY|CC-BY-NC|CC-BY-SA|CC-BY-ND|CC-BY-NC-ND|Full
>> Copyright|Other
>> 
>> With Values
>> CC0 (No rights reserved)|CC-BY-NC-SA
>> (recommended)|CC-BY|CC-BY-NC|CC-BY-SA|CC-BY-ND|CC-BY-NC-ND|Full
>> Copyright|Other
>> 
>> And HTML says
>> <option selected='selected' value='None' label='None'>None</option> 
>> <option value='CC0 (No rights reserved)' label='CC0 (No rights 
>> reserved)'>CC0 (No rights reserved)</option>
>> 
>> Anyone had this prob?????

>The list also contains the currently selected value, since it would be
incorrect to show a randomly selected value instead of the one that was
previously >there. This happens on an object-by-object way, so if you
select a different value and save, "None" will no longer be present for
that object.
Only documents that are in create mode have None (inserted by XWiki), as
they never had any value in the past I cannot see how can you say
"randomly selected value instead of the one that was previously there".
There was nothing there.
 
It would be better to select whatever is the first value in the list.

>A good fix is to write a script that searches for all objects that have
"None" selected and replace it with a different one, then save back the
document. >If you need help with the script, just ask.

I hope this will be sorted in the newer versions.

At least I know what I need to do unlike the issue with Wysiwyg not
working with class properties.

Thank you

Ajdin

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
 
 
--------------------------------------------------------

NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to