Skip to content
New issue

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

[SeoBundle] Fix hanging flash message, it will now disappear after save #357

Merged
merged 2 commits into from
Apr 27, 2015
Merged

[SeoBundle] Fix hanging flash message, it will now disappear after save #357

merged 2 commits into from
Apr 27, 2015

Conversation

denbatte
Copy link
Contributor

The flash message did not go away after save.
Refactored the code to solve this issue

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets /

@denbatte denbatte changed the title [SeoBundle] Fix hanging flash message, it will now dissapear after save [SeoBundle] Fix hanging flash message, it will now disappear after save Apr 21, 2015
@@ -68,6 +51,11 @@ public function robotsSettingsAction(Request $request)
}
}

if ($robot->getRobotsTxt() === $default) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is not the correct check. When someone saves the default text, there is an entry in the database, but $robot->getRobotsTxt() === $defaultis still true...

Copy link
Contributor

Choose a reason for hiding this comment

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

you should show the warning only when the value is null, and if the value is null, the default should be used in the "front"

@krispypen
Copy link
Contributor

@denbatte what is the status of this pr?

@krispypen
Copy link
Contributor

@roderik 👍

@roderik roderik added this to the 3.1.1 milestone Apr 27, 2015
roderik pushed a commit that referenced this pull request Apr 27, 2015
[SeoBundle] Fix hanging flash message, it will now disappear after save
@roderik roderik merged commit e5e5f53 into Kunstmaan:master Apr 27, 2015
@denbatte denbatte deleted the feature/robotsUpdate branch June 2, 2015 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants