I've written some code to allow for a Draggable Table of all email fields attached to parties in the configuration. The highest (existing) of which will be added as a mail property to the party on saving that party.

Comments

yanniboi’s picture

yanniboi’s picture

Status: Active » Needs review
andrewbelcher’s picture

I think long term we want something exportable, but for the mean time here is a patch that allows us to get past the problem.

rlmumford’s picture

rlmumford’s picture

Status: Needs review » Fixed

Thanks, guys! We'll do something better than this with rules eventually

joachim’s picture

'email2'? That's not a good pattern! (http://c2.com/cgi/wiki?ZeroOneInfinityRule)

andrewbelcher’s picture

Yes, it is a bad pattern, but it is an extremely temporary fix. We are thinking that a good solution to it is to make use of Rules. We can set up some triggers and then let rules do all the processing. It already has the whole data selector UI, traversing through data sets, exportability and overrides, sorting etc. It also allows us to introduce conditions so we can do more complicated logic than simply sorting if we wanted to. This would also apply to the name label stuff which is really just another case of 'primary field'. But we'll create another issue to discuss that properly!

joachim’s picture

> We are thinking that a good solution to it is to make use of Rules

Please NO not Rules!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.