Opened 10 years ago

Closed 10 years ago

#3259 closed defect (fixed)

[patch] prepopulate_from doesn't work with underscores

Reported by: rob.slotboom@… Owned by: Adrian Holovaty
Component: contrib.admin Version: 0.95
Severity: normal Keywords:
Cc: gary.wilson@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Using prepopulate_from doesn't work when refering to a fielname containing an underscore (complete_buzz)
Changing the fieldname to a value without an underscore worked.

Attachments (1)

prepopulate.diff (669 bytes) - added by Gary Wilson <gary.wilson@…> 10 years ago.
patch is not tested, but uses \w in the regex of characters to exclude. \w is short for [a-zA-Z0-9_].

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Underscore is not excluded in the "remove unneeded chars" regex.

Changed 10 years ago by Gary Wilson <gary.wilson@…>

Attachment: prepopulate.diff added

patch is not tested, but uses \w in the regex of characters to exclude. \w is short for [a-zA-Z0-9_].

comment:2 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Summary: prepopulate_from doesn't work with underscores[patch] prepopulate_from doesn't work with underscores

comment:3 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Cc: gary.wilson@… added

comment:4 Changed 10 years ago by Gary Wilson <gary.wilson@…>

just tested patch and underscores do work with the attached patch.

comment:5 Changed 10 years ago by mir@…

Triage Stage: UnreviewedReady for checkin

Thanks, Gary!

comment:6 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [4537]) Fixed #3259 -- Fixed problem with prepopulate_from for fields containing
underscores in their name. Patch from Gary Wilson.

Note: See TracTickets for help on using tickets.
Back to Top