Ignore:
Timestamp:
Apr 6, 2020, 9:19:50 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Show DateTime form field type with null value as unchecked checkbox.
  • Fixed: Add form action error for fields with default null value.
  • Added: Show Service form field NetworkSubnet.
  • Modified: Code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Customer/Customer.php

    r869 r871  
    106106        'SpeedLimit' => array('Type' => 'TNetworkSpeedLimit', 'Caption' => 'Omezení rychlosti', 'Default' => null, 'Null' => true),
    107107        'Devices' => array('Type' => 'TNetworkDeviceListService', 'Caption' => 'Zařízení', 'Default' => ''),
     108        'Subnets' => array('Type' => 'TNetworkSubnetListService', 'Caption' => 'Podsítě', 'Default' => ''),
    108109        'ChangeAction' => array('Type' => 'TActionEnum', 'Caption' => 'Změna - akce', 'Default' => '', 'Null' => true),
    109110        'ChangeTime' => array('Type' => 'DateTime', 'Caption' => 'Změna - čas', 'Default' => '', 'Null' => true, 'NotInList' => true),
     
    142143      'Type' => 'ManyToOne',
    143144      'Table' => 'NetworkDevice',
     145      'Id' => 'Id',
     146      'Ref' => 'Service',
     147      'Filter' => '1',
     148    ));
     149    $this->System->FormManager->RegisterFormType('TNetworkSubnetListService', array(
     150      'Type' => 'ManyToOne',
     151      'Table' => 'NetworkSubnet',
    144152      'Id' => 'Id',
    145153      'Ref' => 'Service',
Note: See TracChangeset for help on using the changeset viewer.