Code

Opened 7 years ago

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

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

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

  • Cc gary.wilson@… added

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

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

comment:5 Changed 7 years ago by mir@…

  • Triage Stage changed from Unreviewed to Ready for checkin

Thanks, Gary!

comment:6 Changed 7 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.