DynamicFields & ACL

Moderator: crythias

Locked
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

DynamicFields & ACL

Post by yuri0001 »

Hi!
I create an ACL.
The task- when customer entered ticket from web-interface, when he choice of category (field CategoryName) 02_ReplacingCartrige - in field subcategory (next field SubCategoryName) from the list of possible 4 values - to give the opportunity to choose only 2 - 02 Cartrige and 04 DrumUnit

Code: Select all

    $Self->{TicketAcl}->{'500 - Category --> SubCategory'} = {
        # match properties
        # current dynamic field match properties
        Properties => {
    #       Ticket => {
           DynamicField => {
                # keys must be in DynamicField_<field_name> format
               DynamicField_CategoryName  => ['02_ReplacingCartrige'],
               },
          },   
        # return possible options (white list)
        Possible => {
            # possible ticket options (white list)
            Ticket => {
                DynamicField_SubCategoryName  => ['02 Cartrige', '04 DrumUnit'],
               },
            },   
       };
But it not works. All values of subcategory available in all cases
I try it in version 3.1.1 on local PC with Windows 7 Ult(64-bit)
1. Is this possible with DynamicFields?
2. Is the reason may be - that dynamic fields displays in CustomerTicketMessage.dtl as block of all fields at once?
3. Something else? :(
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: DynamicFields & ACL

Post by yuri0001 »

Hi!
Anybody know something about it?
I tried alternative with

Code: Select all

        Properties => {
         Ticket => {
   #        DynamicField => {
                # keys must be in DynamicField_<field_name> format
               DynamicField_CategoryName  => ['02_ReplacingCartrige'],
this also not works. :(
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Solved! Re: DynamicFields & ACL

Post by yuri0001 »

It's need to use DynamicField_fieldname - KEY instead of "some value" in examples in Property phrase & real value of field in Possible phrase! :D
All works fine.
Sorry my bad English. :?
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
kwietscheente
Znuny newbie
Posts: 11
Joined: 22 Mar 2012, 16:39
Znuny Version: 30102

Re: DynamicFields & ACL

Post by kwietscheente »

Hi Yuri,

i have the same problem in the moment. Can you explain it what you mean. Maybe can you print the source (screen)?

Thanks a lot, Sven
Locked