progressivetech / net.ourpowerbase.sumfields

The Summary Fields extension creates read-only custom data fields that extend Contact and are automatically populated with up-to-date totals such as total lifetime contributions, last contribution amount, last attended event, etc.
Other
8 stars 29 forks source link

save custom_field_parameters according to the new fields, create temporary table for active fields only #91

Open masetto opened 3 years ago

masetto commented 3 years ago

I propose two fixes:

  1. save the custom_field_parameters setting according to the new fields: before this fix the fields that are not in new_fields are also maintaned.
  2. creates temporary table columns for active fields only: before this fix all fields in custom_field_parameters was created, while in insert the active ones only.