Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Fixes missing campaign title in reportback mergevars.#6019

Merged
sergiitk merged 3 commits intoDoSomethingArchive:devfrom
sergiitk:reportback-title-fix
Jan 12, 2016
Merged

Fixes missing campaign title in reportback mergevars.#6019
sergiitk merged 3 commits intoDoSomethingArchive:devfrom
sergiitk:reportback-title-fix

Conversation

@sergiitk
Copy link
Contributor

What's this PR do?

So I think this should fix title in email, sent to a user, which reported back with Mobile App or SMS:
image

How should this be manually tested?

  • Signup for the campaign via SMS mobile: 38383, "Wired" :
  • Start flow: "TECH"
  • Go through steps, "1", "2", "3", "4"
  • report back: "EMOJI"
    • "Y" to confirm submitting images
  • Send image
  • Answer 3 report back questions
  • Produces report back email with empty campaign title (details / example above).

Any background context you want to provide?

See #5985, #5870.

What are the relevant tickets?

Fixes #5872.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this always be reset by the $node->title_field logic? Is there a case where $node->title_field will not have a value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not be reset if a node isn't loaded for some reason.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the presence of node_load($entity->nid); above should the "node isn't loaded for some reason" be logged / reported as an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

@sergiitk
Copy link
Contributor Author

@deezone updated.

@deezone
Copy link
Contributor

deezone commented Jan 12, 2016

👍

sergiitk added a commit that referenced this pull request Jan 12, 2016
Fixes missing campaign title in reportback mergevars.
@sergiitk sergiitk merged commit 3b25cc0 into DoSomethingArchive:dev Jan 12, 2016
@sergiitk sergiitk deleted the reportback-title-fix branch January 12, 2016 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Mobile App Transactionals

2 participants