This patch contain:
1. Small correction of syntax errors ensure module don't crashed.
2. I wrote support Views 3 for some fields of transaction and display list of payments with Views. Default view included. Look /admin/reports/payments - VERY useful for personal modifications without programming! Also functions for edit and delete transactions i think better placed in main module (instead pg_showtransactions).
Thanks for commit! Suggestions is welcome!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | pgapi-1-small-syntax-fixes.patch | 9.16 KB | lancee |
| #3 | pgapi-2-views-integration.patch | 24.22 KB | lancee |
| #3 | pgapi-3-views-default-view.patch | 9.57 KB | lancee |
| pgapi-views-support.patch | 43.25 KB | lancee |
Comments
Comment #1
andypostPatch is awesome! but in future please split it to more granular issues to make it easy to review:
- views integration
- bug fixes
- menu reorganization
Also views support should be optional, by default 'pg_showtransactions' could be disabled to disalow data change so please file a separate issue
any reason to store unused code
trailing whitespace
Add crfl at the end of the file
use
$query
->extend
-> ....
->execute();
it's more readable
should be blank line before @return
Comment #2
lancee commentedI corrected pg_showtransaction only for avoid crash system when it enable.
And i not full implement that query and leave old query for those who need pg_showtransaction.
The syntax of this module is a separate problem (not only me)! :)
Apply the following patch and next i fully dedicate to syntax.
Comment #3
lancee commentedI fixed only my syntax and did what I could for separate patches!
I can't divide patch more granular form because will be broken it integrity.
In the next patch I process module through coder and fix all syntax problems of whole module.
I promise!
Comment #4
andypost2 and 3 is ok, but 1 needs some love
Why?
should be removed
there's a should be a 2 spaces like all over in core
Why this commented out?
Comment #5
lancee commentedBecause in user interface gateways settings was placed in different places.
Don't understand. Like this?:
As I wrote above, I correct pg_showtransaction only for avoid crash system when it enable.
But I don't planing fully support pg_showtransaction, which can be replaced views integration...
In other issue I would suggest to replace pg_showtransaction to pgapi_ui with user interface functionality and Vews integration.
So do not want to touch pg_showtransactions. ;)
Comment #6
lancee commentedNext patch
Comment #7
lancee commented