Ignore:
Timestamp:
Feb 28, 2022, 8:53:22 AM (2 years ago)
Author:
chronos
Message:
  • Modified: Do not determine form submit from URL but directly from submit variable and filled form variables.
  • Added: Use system config from /etc/isp-central directory if standard config is not available.
  • Modified: Form file code cleanup. FormManager class moved to separate file.
File:
1 edited

Legend:

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

    r887 r922  
    8080  }
    8181
     82  function OnCanLoad(array $Item): bool
     83  {
     84    return array_key_exists($Item['Name'].'-null', $_POST) or (array_key_exists($Item['Name'].'-hour', $_POST) and
     85    array_key_exists($Item['Name'].'-minute', $_POST) and array_key_exists($Item['Name'].'-second', $_POST)
     86    );
     87  }
     88
    8289  function OnLoadDb(array $Item): ?string
    8390  {
Note: See TracChangeset for help on using the changeset viewer.