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 autocomplete deluxe module is enabled, the red borders for a missing node reference are missing. The form field error is missing as indicator. I'm using seven as admin theme.
Comment | File | Size | Author |
---|---|---|---|
#7 | Adminimal Theme After Patch.png | 18.81 KB | krina.addweb |
#7 | Seven Theme Result After Patch.png | 8.24 KB | krina.addweb |
#7 | Seven Theme Before PAtch.png | 41.7 KB | krina.addweb |
#7 | Adminimal Theme Result Before Patch.png | 6.26 KB | krina.addweb |
#5 | autocomplete_deluxe-no_red_border-2650228-5.patch | 529 bytes | mibfire |
Comments
Comment #2
Peter MajmeskuComment #3
seren10pity13 CreditAttribution: seren10pity13 commentedSame problem here with Adminimal theme for a required autocomplete field.
I've been digging a little bit into it, but I really don't understand why the error class is missing in the html form, and where/when it should be added.
Actually, the stylesheet don't seems to have an error class either.
Comment #4
mibfire CreditAttribution: mibfire commentedI fixed this.
Comment #5
mibfire CreditAttribution: mibfire commented.error class was missing. I fixed.
Comment #6
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedComment #7
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commented@mibfire, Thanks for the patch corrections, it works well for both the theme Adminimal theme & seven theme. I checked this patch using simplytest.me & attached the screenshots for the same.
Comment #8
LNakamura CreditAttribution: LNakamura at Mediacurrent commented@krina.addweb and @mibfire - I'm really mystified by this patch and the results you are both getting.
#5 does not work for me on the current dev version of the code, and I don't see how it could have for any code released in the past couple of years - I see no validation function for the "single" mode scenario (there is one for "multiple" mode), and no code to cause the
required
class to be added to the textfield. Do you see those things in your version of the code?Comment #9
mibfire CreditAttribution: mibfire commented@LNakamura
I don't understand what you don't understand. Install the Adminimal theme download this module, make the field required and save the node without filling the field. You can see there is no red border around the field.
Comment #10
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedHi, @mibfire - the problem (lack of a red border) is not the problem :-) I'm mystified by the patch, which doesn't work for me.