plugin_behavior_ticket_date_locked_on_create.patch

skita, 01/17/2020 08:27 AM

Download (516 Bytes)

View differences:

inc/ticket.class.php
277 277

  
278 278
      $config = PluginBehaviorsConfig::getInstance();
279 279

  
280
      //force
281
      if ($config->getField('is_ticketdate_locked')) {
282
         $ticket->input['date'] = date('Y-m-d H:i:s');
283
      }
284

  
280 285
      if ($config->getField('tickets_id_format')) {
281 286
         $max = 0;
282 287
         $sql = ['SELECT' => ['MAX' => 'id AS max'],