We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use engine 3.1.0 on production.
My content_type has turned on public_submission_enabled option:
public_submission_enabled
public_submission_enabled: true public_submission_accounts: ['my-name1@koala.pl', 'my-name-2@koala.pl']
I use a form that adds new entry on form submission.
I expect to get email notification on submission. Unfortunately I do not get any message.
I've edited file locomotive-3.1.0/app/services/locomotive/content_entry_service.rb and added some logs like that:
locomotive-3.1.0/app/services/locomotive/content_entry_service.rb
def send_notifications(entry) return unless self.content_type.public_submission_enabled? account_ids = (self.content_type.public_submission_accounts || []).map(&:to_s) puts " account_ids: #{account_ids}" self.content_type.site.accounts.each do |account| next unless account_ids.include?(account._id.to_s) Locomotive::Notifications.new_content_entry(account, entry).deliver end end
Unfortunately account_ids is empty.
account_ids
self.content_type.site.accounts also empty.
self.content_type.site.accounts
Any advice?
The text was updated successfully, but these errors were encountered:
I've found that in the backoffice I have to add emails in "models / my_content_type / notification settings" first.
I need to check it again.
Sorry, something went wrong.
hey @adam-pl, I'm not sure the public_submission_accounts site property in Wagon can be pushed (it certainly is for the first deployment).
No branches or pull requests
I use engine 3.1.0 on production.
My content_type has turned on
public_submission_enabled
option:I use a form that adds new entry on form submission.
I expect to get email notification on submission.
Unfortunately I do not get any message.
I've edited file
locomotive-3.1.0/app/services/locomotive/content_entry_service.rb
and added some logs like that:Unfortunately
account_ids
is empty.self.content_type.site.accounts
also empty.Any advice?
The text was updated successfully, but these errors were encountered: