Skip to content
Code-Schnipsel Gruppen Projekte
  1. Mär 20, 2025
    • Henning Leutz's avatar
      fix: update user validation in events · 3444a5fc
      verfasst von Henning Leutz
      Update the user validation method in both `onUserSaveBegin` and `onUserSaveEnd` events. The
      previous validation was using `QUI::getUsers()->isUser($User)`, which was replaced with a check for
      `$User` instance of `QUI\\Users\\User` for improved reliability.
      3444a5fc
    • Henning Leutz's avatar
      fix: usage of user interface in eventhandler · 4e8732ae
      verfasst von Henning Leutz
      - Updated PHPStan version from 1.11.8 to 1.12.13 in phars.xml
      - Changed User class interfaces in the event handlers from QUI\Users\User to
      QUI\Interfaces\Users\User
      - Also, added additional checks and updated function parameters for type consistency.
      4e8732ae
  2. Feb 18, 2025
    • Henning Leutz's avatar
      fix(phpstan): improve user verification and remove redundancies · b0e75b59
      verfasst von Henning Leutz
      Improve user verification in ajax backend passwordMail by adding an instance check for
      QUI\\Users\\User before calling sendPassword method.
      Remove redundant error messages in phpstan-baseline.neon associated with previously incorrect user
      activation logic and unsupported comparison evaluations in Customers.php and Search.php.
      Correct arguments for activate method in Customers.php from false to empty string.
      Add 'users.customerId' to allowed search columns and adjust type hints for arguments in `limit` and
      `setFilter` methods in Search.php to include spaces for better readability.
      
      Related: #67
      b0e75b59
    • Henning Leutz's avatar
      fix(phpstan): improve code clarity and formatting · 6e866030
      verfasst von Henning Leutz
      1. Simplified condition checks for 'firstname' and 'lastname' using the 'empty()' function.
      2. Refactored the type hinting of parameters for the 'addUserToCustomerGroup',
      'removeUserFromCustomerGroup', and 'setAttributesToCustomer' methods.
      3. Updated the type hinting for the 'getEntityTypeTitle' method, adding a possibility to receive
      null.
      
      Related: #67
      6e866030
  3. Feb 03, 2025
    • Henning Leutz's avatar
      feat: add attributes to createCustomer function · 905c5471
      verfasst von Henning Leutz
      This commit includes enhancements in customer creation feature. Specifically, it modifies the
      `createCustomer` function by adding a new parameter `$attributes` to handle attribute data during
      customer creation process. Moreover, it introduces UI components to collect these attribute
      details. Updates have been made to the associated form elements, button actions and display methods
      to accommodate these changes. In addition, it makes considerable changes in the backend JavaScript
      files to facilitate frontend changes and to meet compatibility.
      
      There's also a change in error handling part where it replaces the `try-catch` block, which attempt
      to get the standard address, with direct command. This assures the retrieval of the standard
      address, if exists, else a new address will be created implicitly.
      
      Finally, few general code improvements are done like changing usage of `var` to `const` or `let`
      where necessary for better maintainability. A minor adjustment on window height property is also
      made in `CustomerWindow.js` file.
      
      Related: #68
      905c5471
  4. Dez 05, 2024
  5. Aug 30, 2024
  6. Aug 05, 2024
  7. Aug 01, 2024
  8. Jul 30, 2024
  9. Jul 29, 2024
  10. Jul 03, 2024
  11. Jul 02, 2024
  12. Jul 01, 2024
  13. Jun 28, 2024
Lade