On Wednesday, April 1, 2015 at 11:38:53 PM UTC-5, RjOllos wrote:
>
> I'm not sure which plugin the [fieldscheck] section applies to. It isn't 
> defined by TicketValidatorPlugin:
> http://trac-hacks.org/wiki/TicketValidatorPlugin
>

I was trying to incorporate the changes made by Dan Winslow in this comment 
<https://groups.google.com/forum/#!topic/trac-users/P-Zwu85rEOM>. The 
end-goal is to trigger the error when the field hasn't been moved from the 
default value. The fields are pre-populated with a dropdown list:
# trac-admin /var/www/projects/svn-OurProject ticket_type list

Possible Values              
-----------------------------
--- Please choose a state ---
01 Alabama                   
04 Arizona                   
05 Arkansas                  
06 California                
08 Colorado                  
...

So we'd like to query to be sure the user moved the default from "--- 
Please choose a state ---" 
 

> As for using it with your custom field, I can confirm the following works:
>
> [ticket-custom]
> the_custom = select
> the_custom.options = |one|two|thr|fou
>
> [ticketvalidator]
> new.required = the_custom
>
> [image: Inline image 2]
>

I guess I went a different route. Is it possible to replace the text "--- 
Please choose a state ---" with null? Seems like that should resolve this. 
I've tried several methods but it doesn't seem legal. Do we need to define 
the values in the ini file like you did above rather than populating them 
via trac-admin?

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to