Skip to content
Snippets Groups Projects
  1. Oct 09, 2015
    • Jared Hancock's avatar
      forms: Avoid dropping the CDATA table · fddd2d12
      Jared Hancock authored
      MySql 5.6 and MariaDB 10 will return affected_rows == 0 if updating a row to
      its current values. Therefore, if an object is "edited", but none of the
      CDATA is modified, then the CDATA table might be dropped and rebuilt.
      fddd2d12
  2. Aug 18, 2015
  3. Aug 10, 2015
  4. Aug 04, 2015
  5. Jul 21, 2015
  6. Jul 13, 2015
  7. Jun 30, 2015
  8. Jun 22, 2015
  9. May 27, 2015
  10. May 22, 2015
  11. May 15, 2015
  12. May 14, 2015
  13. May 13, 2015
  14. May 05, 2015
  15. Apr 30, 2015
  16. Apr 29, 2015
  17. Apr 21, 2015
  18. Apr 15, 2015
    • Jared Hancock's avatar
      custom-data: Address major confusion · 4efef017
      Jared Hancock authored
      This feature addresses a major issue with the initial implementation of the
      custom data system. The original system confused the usage of
      database-backed field (dynamic-fields) and their corresponding
      implementation. This created the need to crate awkward caching pieces to
      ensure that validation errors and data was maintained. Furthermore, the
      system confused the linking between form instances (dynamic-entry) and the
      form used to represent that entry.
      
      This patch addresses the confusion in two ways:
      
      Dynamic form entries do not link directly to the dynamic form. Instead, the
      ::getForm() method returns something from the forms API directly.
      Furthermore, the ::getFields() method does not return dynamic field
      instances (database backed / designed fields). Instead, the actual
      implementation of the fields from the forms API is retrieved. This allows
      the fields to *always* be cached, which helps preserve data and validation
      state.
      
      Secondly, the dynamic form uses the same system, so that requests to turn a
      dynamic form into a form (via ::getForm) will also result in the same
      behavior, again, where the fields are represented as forms API fields rather
      than the dynamic fields.
      
      So going forward, the dynamic fields are *only* used to create corresponding
      forms API field implementations. The are associated with the dynamic
      counterparts as sparingly as possible.
      4efef017
  19. Apr 10, 2015
Loading