Noticed that in pay.admin.inc on line 160 it says

$pmid = isset($pay_method->pmid) ? $pay_method->pmid : get_class($pay_method);

since get_class will only ever return a string I guess this isn't right??

So thought I'd propose the attached as a patch - there may well be a better way of getting the pmid at that point I'm figuring this out in amongst other work so apologies if I'm confused!

CommentFileSizeAuthor
#2 pay.admin_.patch646 bytespaul.dambra
pay.admin_.patch646 bytespaul.dambra

Comments

paul.dambra’s picture

Just noticed while I'm in there that in function pay_admin_method_form(&$form_state, $pay_method = NULL)

there is referred to:
$form['#pay_method']
and
$form['pay_method']

I'm not sure which is right (or indeed if either is wrong although it does look it) so don't want to edit my patch in the wrong direction.

paul.dambra’s picture

Status: Active » Closed (works as designed)
StatusFileSize
new646 bytes

Seems this was an ID-ten-T situation... and my custom plug in was at fault... apologies and facepalm