MillerTech-CRM / uk.co.nfpservices.module.memberonlyevent

Ability to restrict certain events to members only
Other
1 stars 6 forks source link

Replicated code in buildForm #11

Open shaneonabike opened 1 year ago

shaneonabike commented 1 year ago

Hi there,

Thanks for building an awesome extension. While poking around to figure something out I noticed that you have a duplicate set of calls in memberonlyevent_civicrm_buildForm

https://github.com/MillerTech-CRM/uk.co.nfpservices.module.memberonlyevent/blob/41be98ee1560789b1cf55115a567ed640e00e691/memberonlyevent.php#L202-L217

Specifically, you are grabbing the Member Only settings twice it seems. Pretty easy fix but I thought I would point it out.