app/controllers/phcmemberspro/members/contacts_controller.rb in phcmemberspro-3.0.3 vs app/controllers/phcmemberspro/members/contacts_controller.rb in phcmemberspro-3.0.4
- old
+ new
@@ -20,9 +20,12 @@
# Member Contact Index
def index
main = Members::Main.find(params[:main_id])
@members_contact = main.contacts.scoped_to(current_account).order('mccontactname ASC')
+ if params[:search]
+ @foods = Food.name_like("%#{params[:search]}%").order('name')
+ else
end
# Detailed Member Contact Information
def show
main = Members::Main.find(params[:main_id])