Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Allow date/time to be set when manually changing a payment's status
Comment | File | Size | Author |
---|---|---|---|
#9 | payment_1932430_9.patch | 17.59 KB | Xano |
Comments
Comment #1
XanoComment #2
XanoConvert this to a form element for easy re-use.
Comment #3
XanoThis is a first stab, but the datetime element's validation keeps failing.
Comment #4
XanoLet's do it like this instead. Making this a separate operation makes clear that by setting a new status the actual payment is not changed, but that its state changes. As a follow-up, change the existing payment edit form in #2252765: Expand the payment edit form.
Comment #5
XanoNote that when clicking the "Update status" operation from the payment entity list, the form should be opened in a modal, but that does not happen yet.
Comment #6
XanoAnd this needs tests...
Comment #7
XanoThe problem was that the
core/drupal.ajax
library was not added to the page. Instead of doing this ourselves, wait for #2253257: Use a modal for entity delete operation links to be fixed.Comment #8
XanoAlso use ContentEntityForm instead of EntityForm.
Comment #9
XanoComment #10
Xano