Set hidden PendingTime in ProcessManagement

Moderator: crythias

Locked
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Set hidden PendingTime in ProcessManagement

Post by RStraub »

Hello forum,

I'm currently trying to use an ActivityDialog with the field "PendingTime" where the default value is submitted and the field itself is not shown.

So far I've tried to enter as default value the String format, e.g. "2014-11-30 16:08" as well as the Diff format, e.g. "1440".
None of those options triggers an update of the PendingTime (checked in history).

The state is set to pending auto close+ and I can receive an update if I make the field visibel.

Could someone please help me with the correct syntax for the "PendingTime" field?
I could imagine that this doesn't work with a hidden field as I found this code in the AgentTicketProcess.pm:

Code: Select all

                # if all values are present
                if (
                    defined $DateParam{ $Prefix . 'Year' }
                    && defined $DateParam{ $Prefix . 'Month' }
                    && defined $DateParam{ $Prefix . 'Day' }
                    && defined $DateParam{ $Prefix . 'Hour' }
                    && defined $DateParam{ $Prefix . 'Minute' }
                    )
From my interpretation it look that one value just isn't enough..

Best regards,
Rolf
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Locked