Opened 8 years ago

Closed 8 years ago

#3259 closed defect (fixed)

[patch] prepopulate_from doesn't work with underscores

Reported by: rob.slotboom@… Owned by: adrian
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@…> 8 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 8 years ago by Gary Wilson <gary.wilson@…>

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

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

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

  • Summary changed from prepopulate_from doesn't work with underscores to [patch] prepopulate_from doesn't work with underscores

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

  • Cc gary.wilson@… added

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

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

comment:5 Changed 8 years ago by mir@…

  • Triage Stage changed from Unreviewed to Ready for checkin

Thanks, Gary!

comment:6 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(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