Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide a couple of unused fields, clear some placeholder labels. #33

Merged
merged 1 commit into from
May 29, 2017

Conversation

xurizaemon
Copy link
Contributor

Doesn't seem like the URLs need to be populated (no issues creating and saving a processor with them blank) so no point in filling them with http://unused.com (currently a page about Pokemon?).

@eileenmcnaughton
Copy link
Owner

Does the parent form no longer enforce those urls to be populated?

@xurizaemon
Copy link
Contributor Author

xurizaemon commented May 29, 2017

Seems so. I had no issues creating and saving a processor with URL fields left blank.

@eileenmcnaughton
Copy link
Owner

Ok - I'll take your word for it!

@eileenmcnaughton eileenmcnaughton merged commit da470b6 into eileenmcnaughton:master May 29, 2017
@xurizaemon
Copy link
Contributor Author

I'm thinking (separate PR) I might add some processor-specific CSS to hide unused fields.

@xurizaemon xurizaemon deleted the 33-pxpay_labels branch May 29, 2017 01:57
@eileenmcnaughton
Copy link
Owner

for the extension or core? sounds core?

@xurizaemon
Copy link
Contributor Author

xurizaemon commented May 29, 2017

A core fix would be to replicate the behaviour in .mgd so that any field is hidden if label is NULL (that's how things work right now I believe); then Omnipay can set URL_X=null for certain processors, and hide the field. That's probably ideal.

If it's some processors only (and I only know about certain processors), the fix belongs in the relevant processor. So there are two ways we can slice that salad I guess.

@eileenmcnaughton
Copy link
Owner

I think I'm with you - so core hides fields with labels - but maybe not the url ones? & the change in the Mgd is to ensure the metadata is declared correctly for core to do that?

@xurizaemon
Copy link
Contributor Author

xurizaemon commented May 29, 2017

AFAICT / from memory

  • Core hides some fields if .mgd says they are labelled NULL.
  • Some processor config fields seem to be treated differently.
  • Possibly there are some weird specifics with test mode too.

Fixing those would be nice! I'll be sure to let you know if I get a chance to.

This is just banter, not a request 😜

@eileenmcnaughton
Copy link
Owner

Ok so to summarise - there are some things that core may or may not do correctly & it would be good to fix them & then implement required changes to the extension :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants