Changeset 16 for Common/Modules


Ignore:
Timestamp:
Dec 27, 2022, 3:32:33 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/Modules/ModuleManager.php

    r14 r16  
    250250        'Type' => ModelColumnType::GetName($Field->Type), 'Nullable' => (int)$Field->Nullable));
    251251    }
     252    if ($ModelDesc->DefaultValues != null)
     253    {
     254      $Values = call_user_func('self::'.$ModelDesc->DefaultValues);
     255      foreach ($Values as $Value)
     256      {
     257        $this->Database->insert($ModelDesc->Name, $Value);
     258      }
     259    }
    252260  }
    253261
Note: See TracChangeset for help on using the changeset viewer.