Skip to content
Snippets Groups Projects
  1. Jan 21, 2024
  2. Jan 20, 2024
  3. Jan 19, 2024
    • Marcin Sągol's avatar
      [TASK] Sort table and field list in DB Check module by labels · 566c6d60
      Marcin Sągol authored
      When we use DB Check module and our project has large number of
      tables configured in the TCA it is often hard to quickly find on the
      select list the one we are interested with.
      
      This commit adds small changes to `DatabaseIntegrityController` to:
      - sort (ASC) available tables list by table label
      - if table label is not defined, use raw table name wrapped with [...]
      - sort (ASC) fields defined for table by their labels
      - if field label is not defined, [FIELD: xxx] is used as before
      
      Examples for table label
      
      $GLOBALS['TCA']['sys_file']['title'] = 'Label';
      - result without debug mode enabled in the BE: 'Label'
      - result with debug mode disabled in BE: 'Label [sys_file]'
      
      $GLOBALS['TCA']['sys_file']['title'] = '';
      - result without debug mode enabled in the BE: '[sys_file]'
      - result with debug mode disabled in BE: '[sys_file]'
      
      Examples for field label
      
      $GLOBALS['TCA']['sys_file']['title']['columns']['field']['label'] = 'Label';
      - result without debug mode enabled in the BE: 'Label'
      - result with debug mode disabled in BE: 'Label [field]'
      
      $GLOBALS['TCA']['sys_file']['title']['columns']['field']['label'] = '';
      - result without debug mode enabled in the BE: '[FIELD: field]'
      - result with debug mode disabled in BE: '[FIELD: field] [field]'
      
      Resolves: #98110
      Releases: main, 12.4
      Change-Id: I6511ee44f2503b9908a9bdc9f06b508c2f049483
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82480
      
      
      Tested-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
      Reviewed-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      566c6d60
  4. Jan 18, 2024
  5. Jan 16, 2024
  6. Jan 14, 2024
  7. Jan 12, 2024
  8. Jan 11, 2024
  9. Jan 10, 2024
    • Stefan Bürk's avatar
      [TASK] Avoid invalid datetime database default in a test · 036c2e36
      Stefan Bürk authored
      With #102479 support for persisting datetime_immutable
      object has been ensured and covered with a functional
      test. However, using a empty string as default for a
      not nullable datetime field is invalid for MariaDB and
      MySQL which seemed to work until now in test executions.
      
      Something has changed, but had no luck to find any traces
      in the mariadb, mysql or corresponding docker hub changelogs
      and commits explaining this.
      
      The TYPO3 default TCA schema creates nullable fields with a
      null default for `date, datetime and timestamp` anyway, and
      therefore we now use that for the test case table structure.
      
      It make sense to test a valid structure if working state is
      expected.
      
      Note:   It seems that core ci is not blocked by this yet,
              however local execution are broken. To verify with
              and without the change use following command(s):
      
          > Build/Scripts/runTests.sh -u
          > Build/Scripts/runTests.sh -s functional -d mysql \
              typo3/sysext/core/Tests/Functional/Database/
      
      Resolves: #102807
      Releated: #102479
      Releases: main, 12.4
      Change-Id: Ide32b3f9dc4b049ff5c3982997c85a0bb01e2fce
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82388
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      036c2e36
    • Oliver Bartsch's avatar
      [BUGFIX] Properly handle unknown link type · 931fc9a7
      Oliver Bartsch authored
      In case an invalid link type is used in
      a link field, the link browser does no
      longer throw an exception but instead
      displays a flash message with the
      corresponding information.
      
      Additionally, an undefined array key access
      is resolved, which might happen e.g. in
      case such invalid link is being analyzed
      by link validator.
      
      Resolves: #102804
      Releases: main, 12.4
      Change-Id: I5ad35ff46360cc4b27556b8e2c75da69ecbe76d9
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82387
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
      Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
      931fc9a7
  10. Jan 09, 2024
  11. Jan 08, 2024
  12. Jan 07, 2024
  13. Jan 06, 2024