When the Fill PDF settings page is first loaded after an install, all three services are selected (remote, local, and pdftk). Clicking on one of these to deselect it causes all three to be deselected. This behavior is confusing.
I suggest that instead the settings page use a single radio button to select the service to use and that none should be selected when the setting page is first loaded. If one selects remote, then the settings for API key and SSL should appear.
I would be happy to work on this if this direction is approved.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | fillpdf_settings-D6.patch | 17.32 KB | liam morland |
| #5 | fillpdf_settings.patch | 13 KB | liam morland |
| #4 | fillpdf_settings.patch | 13 KB | liam morland |
| #2 | fillpdf_settings.patch | 17.96 KB | liam morland |
Comments
Comment #1
wizonesolutionsApproved and thank you! This is a longstanding inconsistency.
Comment #2
liam morlandSee attached patch. There is a new configuration variable called fillpdf_service which stores which service is being used, "remote", "local", or "pdftk". The first time the settings page is loaded, fillpdf_service is populated based on the old variables and the old ones are deleted.
Comment #3
wizonesolutionsI think this is too overarching as it stands. We should only manipulate variables in a proper update hook - otherwise, this code will be hanging around for versions to come. I say we kill this or move it into fillpdf.install as an implementation of
hook_update_N().These are string changes and don't have to do with the behavior of a page. File a separate issue.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
Relevant issue, but not in the scope of this patch.
This patch overall will need tests too.
Comment #4
liam morlandThanks, Kevin. Updated patch attached.
Comment #5
liam morlandSorry, use this better version.
Comment #6
wizonesolutionsThis works, and I like the way you've done it this time. We probably should have put the pdftk check into another issue, but eh, I don't really mind. This is a broad issue anyway.
Committed to 7.x-1.x. Needs backport to 6.x-1.x when there's a chance.
Comment #7
liam morlandD6 patch attached. Since I don't have a D6 site, I have not tested it.
Comment #8
wizonesolutions#1430390: Coding standards: remove whitespace broke this one too.
Comment #9
wizonesolutionsComment #10
alexborsody commentedI will test this and if it works commit it, and resolve the whitespace issue.
Comment #14
liam morlandDrupal 6 is no longer supported.