Ignore:
Timestamp:
Apr 10, 2023, 7:44:01 PM (13 months ago)
Author:
chronos
Message:
  • Fixed: IP address database field size in News table for IPv6.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Form.php

    r941 r948  
    8282  {
    8383    $Item = $this->Definition['Items'][$Index];
    84     $UseType = $this->GetItemType($Item);   
     84    $UseType = $this->GetItemType($Item);
    8585   
    8686    $Result = $this->FormManager->Type->ExecuteTypeEvent($UseType, $Event,
     
    175175
    176176  function GetItemType($Item): string
    177   {   
     177  {
    178178    if (array_key_exists($Item['Type'], $this->FormManager->FormTypes))
    179179    {
     
    186186        $UseType = 'Enumeration';
    187187    } else $UseType = $Item['Type'];
    188    
     188
    189189    return $UseType;
    190190  }
     
    197197      (array_key_exists($Item['Type'], $this->FormManager->FormTypes) and
    198198      ($this->FormManager->FormTypes[$Item['Type']]['Type'] != 'ManyToOne')))
    199       {     
     199      {
    200200        $UseType = $this->GetItemType($Item);
    201201        if (!array_key_exists('SQL', $Item)) $Item['SQL'] = '';
     
    217217      ($this->FormManager->FormTypes[$Item['Type']]['Type'] != 'ManyToOne')))
    218218      {
    219         $UseType = $this->GetItemType($Item);     
     219        $UseType = $this->GetItemType($Item);
    220220        $this->Values[$Index] = $this->FormManager->Type->ExecuteTypeEvent($UseType, 'OnLoadDb',
    221221          array('Value' => $DbRow[$Index], 'Name' => $Index,
     
    256256
    257257    foreach ($this->Definition['Items'] as $Index => $Item)
    258     {     
     258    {
    259259      if (!array_key_exists('ReadOnly', $Item)) $Item['ReadOnly'] = false;
    260260      if ($Item['ReadOnly'] == false)
     
    268268          array('Value' => $this->Values[$Index], 'Name' => $Index,
    269269          'Type' => $Item['Type'], 'Values' => $this->Values,
    270           'Filter' => $this->Values[$Index])))       
    271         {         
     270          'Filter' => $this->Values[$Index])))
     271        {
    272272          $Result = false;
    273273          break;
    274274        }
    275       }     
     275      }
    276276    }
    277277
     
    309309      } else
    310310      {
    311         if (isset($Item['Default'])) 
     311        if (isset($Item['Default']))
    312312        {
    313313          if (isset($Item['Null']) and ($Item['Null'] == true))
     
    339339          else $Parameters['Null'] = false;
    340340        if (!$this->FormManager->Type->ExecuteTypeEvent($UseType, 'Validate',
    341           $Parameters)) 
     341          $Parameters))
    342342        {
    343343          $this->ValuesValidate[$Index] = true;
     
    345345        }
    346346      }
    347     } 
     347    }
    348348    if ($Valid == false) throw new Exception('not validated');
    349349    return $Valid;
Note: See TracChangeset for help on using the changeset viewer.