Opened 18 years ago

Closed 18 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: no UI/UX: no

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@…> 18 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 by Gary Wilson <gary.wilson@…>, 18 years ago

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

by Gary Wilson <gary.wilson@…>, 18 years ago

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 by Gary Wilson <gary.wilson@…>, 18 years ago

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

comment:3 by Gary Wilson <gary.wilson@…>, 18 years ago

Cc: gary.wilson@… added

comment:4 by Gary Wilson <gary.wilson@…>, 18 years ago

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

comment:5 by mir@…, 18 years ago

Triage Stage: UnreviewedReady for checkin

Thanks, Gary!

comment:6 by Malcolm Tredinnick, 18 years ago

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