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

Fixes SMS game active view#6271

Merged
katiecrane merged 3 commits intoDoSomethingArchive:devfrom
katiecrane:game-layout
Mar 15, 2016
Merged

Fixes SMS game active view#6271
katiecrane merged 3 commits intoDoSomethingArchive:devfrom
katiecrane:game-layout

Conversation

@katiecrane
Copy link
Contributor

What's this PR do?

Fixes SMS game active view to show up as an SMS game and not a regular campaign.

How should this be manually tested?

As an admin, go to a closed SMS campaign and go into the active view. It should show up like an SMS game and not a campaign. It should only be calling the dosomething_campaign_preprocess_sms_game if you are on the active path so I don't think it should be messing anything else up.

Any background context you want to provide?

I made the fix that @aaronschachter suggested in the issue and it seems to work.

What are the relevant tickets?

Fixes #4488

// @see dosomething_campaign_menu().
$active_path = 'node/' . $node->nid . '/active';
if ($current_path == $active_path) {
if(dosomething_campaign_get_campaign_type($node) == 'sms_game') {
Copy link
Contributor

Choose a reason for hiding this comment

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

a comment inspired by @sergii-tkachenko use ===

@angaither
Copy link
Contributor

👍

cc @namimody

katiecrane added a commit that referenced this pull request Mar 15, 2016
@katiecrane katiecrane merged commit 947ce49 into DoSomethingArchive:dev Mar 15, 2016
@katiecrane katiecrane deleted the game-layout branch March 15, 2016 15:43
@namimody
Copy link
Contributor

Thanks @angaither and @katiecrane! And does the SMS active view also appear if the SMS game is open?

@katiecrane
Copy link
Contributor Author

@namimody Yeah it shows up correctly, but just under view and not active. The active view is only available if the campaign is closed. That's my understanding at least.

@namimody
Copy link
Contributor

Hi @katiecrane! Got it, thanks. Going to make a separate issue for the weird /edit view that currently exists for active SMS campaigns.

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.

active tab for SMS Games should display SMS Game layout

3 participants