Changes between Version 5 and Version 6 of TracComponentAliasPlugin


Ignore:
Timestamp:
Feb 20, 2013, 1:25:07 AM (11 years ago)
Author:
Ryan J Ollos
Comment:

Refs #10883.

Legend:

Unmodified
Added
Removed
Modified
  • TracComponentAliasPlugin

    v5 v6  
    55== Description ==
    66
    7 Changes the component based off the selection from a custom field
     7Changes the component based off the selection from a custom field of type `radio` or `select`. The plugin is implemented in Python, so the component will be changed only after the form is submitted (as opposed to some implementations in !JavaScript that may dynamically change the field client-side).
    88
    99== Bugs/Feature Requests ==
     
    2828{{{
    2929#!ini
    30 # test1 and test2 define the grouping.  The name can be whatever you want.
     30; test1 and test2 define the grouping.  The name can be whatever you want.
    3131
    3232[component_alias]
    33 test1.custom_field = custom_field    # custom ticket field this applies to
    34 test1.name = TEST                    # name from the custom ticket field this applies to
    35 test1.alias = component1             # change component to this alias if "TEST" is selected
     33test1.alias = component1             ; change component to this alias if "TEST" is selected
     34test1.custom_field = custom_field    ; custom ticket field this applies to
     35test1.name = TEST                    ; name from the custom ticket field this applies to
     36test2.alias = component2             ; change component to this alias if "This is a test" is selected
     37test2.custom_field = custom_field    ; custom ticket field this applies to
     38test2.name = This is a test          ; name from the custom ticket field this applies to
    3639
    37 test2.custom_field = custom_field    # custom ticket field this applies to
    38 test2.name = This is a test          # name from the custom ticket field this applies to
    39 test2.alias = component2             # change component to this alias if "This is a test" is selected
    40 
     40[ticket-custom]
     41custom_field = select
     42custom_field.options = TEST|This is a test
    4143}}}
    4244