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.
With the payment module you get a view with all payments made. Including a relation from payment to the user who made the payment.
Now I need a view with all users and the payments they made. That is the other way around. The purpose is to check which user did not make a certain payment.
When creating a view of users, there is no possibility to create a relationship with payment entities. Why is that? Is there another way to get a view of users without payments?
Comment | File | Size | Author |
---|---|---|---|
#1 | payment_2340631_1.patch | 619 bytes | Xano |
Comments
Comment #1
XanoThis should work.
Comment #2
ecvandenberg CreditAttribution: ecvandenberg commentedMany thanks for your almost instant reply and patch! I did not review the code because I'm not a programmer. I applied the patch and was indeed able to make a relation from a Users view to Payments. I have the following remarks:
HTTP Result Code: 500
Debugging information follows.
Path: /admin/structure/views/view/my-view-name/preview/page_1/ajax
StatusText: Service unavailable (with message)
ResponseText:
Comment #3
XanoGood!
It's indeed a more fundamental problem; Views requires help/description, but that is bad UX. It must be fixed there instead.
Content?
We'll need more information before that can be fixed. Please provide the corresponding server-side log entries.
That is already possible.
Comment #4
ecvandenberg CreditAttribution: ecvandenberg commentedLinking a field to it's content, in this case means, linking it to it's payment. That would also be convenient for the default Payment view.
The error only occurs when trying to add a description field. Both the Payment description field and the Payment line item description field. In the log files I find:
Recoverable fatal error: Argument 2 passed to t() must be an array, boolean given, called in .../sites/all/modules/payment/payment/views/PaymentViewsHandlerFieldTranslatableString.inc on line 36 and defined in t() (line 1466 of .../includes/bootstrap.inc).
Indeed, a relation to payment line items is already possible.
Comment #5
XanoI still don't understand what you mean by this. Please open a new issue and describe the requested feature in more detail.
That is helpful! Could you open a new issue for this bug?