Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
contact.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Mar 2012 at 19:19 UTC
Updated:
5 Jul 2020 at 11:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yoroy commentedYes :)
Comment #2
kika commentedHere's the patch.
Not sure about punctuation, it seems from http://drupal.org/node/387526 that the rule is to have a . after single checkbox label.
Comment #3
kika commentedComment #5
yoroy commentedThe screenshot with a selected checkbox and that description looks quite self-referential :) Initially it didn't seem to mean that much. Maaaaybe a bit more specific:
That two-line description for Weight looks bad doesn't it? #1477802: Shorter description for contact category weight
Comment #6
kika commentedTestbot fails, it's not so easy replace dropdowns with checkboxes. Any form guru can help out here?
@yoroy: Agreed, you got better wording in #5.
Comment #7
kid_icarus commentedModified the title as suggested in #5.
Modified contact.test to assign TRUE or FALSE to $edit['selected'], instead of '0' or '1', as suggested by DrupalWebTestCase::drupalPost $edit parameter:
"A checkbox can be set to TRUE to be checked and FALSE to be unchecked."
Also changed the issue title, as "Selected" was spelled "Seleced".
Comment #8
barrapontoI'm worried that contact_category_edit_form_submit() might unset defaults with integer zero first, then write records with boolean zero (if FAPI doesn't change it back to 0 and 1).
Comment #9
Bojhan commentedComment #10
andypostActually only unset value should be converted to FALSE according to WebTestBase::handleForm()
So I changed comment for drupalPost()
Test and documentation should backported
Comment #11
Bojhan commentedLooks good to me
Comment #12
andypostRelated UX issue #599770: Clean up the contact forms listing UI: Allow to set the default category and weights on the listing page
Comment #13
catchThanks. Committed/pushed to 8.x.
Comment #14
tim.plunkettThis breaks string freeze and changes the UI, I don't think this is backportable.
Comment #15
andypostlet's get commiter's review probably this could be backported
Comment #16
catchI only moved it for backport because of:
Don't know about the change itself (although that's also not up to me :).
Comment #17
andypostI mean this
Comment #19
farrington commentedYou can't change the test without the changes to contact.admin.inc. I'll make a try...
Comment #20
farrington commentedSorry, forgot the Status. *blush*
Edit: And didn't know that I don't have to re-attach the patch again.
Well, let's hope for the best... after all, it's my birthday today. :-)
Comment #21
tim.plunkettSo now this is just the patch in #10, but without the test docs changes. But still with the string changes.
And, it changes the form structure, possibly breaking any custom form_alters. See http://drupal.org/node/1527558 for an explanation of why this isn't backportable. And http://groups.drupal.org/node/210973#comment-701613 lists this as the second most intrusive type of Form API change, after removing an element completely.
Comment #22
farrington commentedRegarding http://groups.drupal.org/node/210973#comment-701613.
Well written, but if you read the last part of that comment... my conclusion is that this issue to be considered as back-portable?
So, here is a patch with the missing changes to the documentation of simpletest. And yes, it's a copy of #10... but this works for Drupal7. :-)
Comment #24
tim.plunkettFixing tag.
Comment #25
andypostLet's get commiters feedback, Summary updated
Comment #26
webchickHm. I also don't know that this is back-portable patch, but it's worth running past David. However, David has requested help on resolving release blockers, so I don't feel comfortable committing feature patches until that happens.
Comment #27
David_Rothstein commentedSorry for not providing feedback here sooner, but I didn't have much time to work on Drupal the last few weeks, and I was focusing most of the time I did have on the release blockers (which I was only getting help from a couple other people on) and other bugs.
I would lean against committing this to Drupal 7 also. The policy linked to above makes clear that changing #type is a relatively intrusive change, and that we generally only consider these for critical issues.... In practice I think it's often more like "issues which have a big impact on user experience" rather than actual critical issues. But either way, does this issue qualify for that? Following user interface guidelines is of course important, but absent any direct evidence that the current behavior is causing usability issues for people trying to use this particular form, I think we should probably leave it alone.
Moving back to "needs review" to further discuss if that's the case, and if particular parts of the patch (e.g., documentation) should be backported instead.
Comment #28
sunI agree with that - a #type change can have bad consequences on existing sites.
Comment #29.0
(not verified) commentedUpdated issue summary.