Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a Link Filed is not marked as required but title is marked as required, the Field rendered marks Title as Required only in Edit mode if URL data exists. Validation takes care that if URL is entered than the title is marked as required if its settings is marked as required.
But in this case, in Add mode the Title filed is not marked as required, but in Edit mode the title is marked required, which is confusing.
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff-2224503-6-10.txt | 1.33 KB | prudloff |
#10 | link-2224503-10.patch | 806 bytes | prudloff |
|
Comments
Comment #1
rahulbile CreditAttribution: rahulbile commentedCurrently the code tries to see if the URl is not empty it marks the title as required. It does not need to check the data of URL as in edit mode someone might want to delete the data for title and Link but Required mark confuses user. Also Other validation modules which does on page validation (Eg clientside validation) do not allow to save the form until data is entered for it. Attached is initial path which tries to solve the problem.
Comment #2
rahulbile CreditAttribution: rahulbile commentedMore clean patch.
Comment #3
rahulbile CreditAttribution: rahulbile commentedComment #4
Chris Burge CreditAttribution: Chris Burge commentedI can confirm this bug still exists in the current recommended release of Link. This patch resolves the issue. I changed the priority to Normal because the bug does adversely affect functionality.
Comment #6
Chris Burge CreditAttribution: Chris Burge commentedSame patch as #2 rerolled against HEAD. I patched with the patch command, and it patched with fuzz. Git Apply was less forgiving.
Also, changed category to bug.. because it's a bug.
Comment #8
Chris Burge CreditAttribution: Chris Burge commentedTests buggy? I don't see how testBasic() would fail at line 87 as a result of this patch. Setting back to Needs Review.
Comment #10
prudloff CreditAttribution: prudloff at Insite commentedHere is a reroll for 1.11.