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

[BUGFIX] Have index updated when using frontend editing #648

Merged
merged 2 commits into from Sep 26, 2016

Conversation

megamisan
Copy link
Contributor

DataHandler (TceMain) hooks are registered also in frontend mode when the TSFE_EDIT post parameter array is present.

Fixes: #647

@@ -132,7 +132,8 @@
'solr::clearSolrConnectionCache',
'ApacheSolrForTypo3\\Solr\\ConnectionManager->updateConnections'
);

}
if ((TYPO3_MODE == 'BE') || ((TYPO3_MODE == 'FE') && isset($_POST['TSFE_EDIT']))) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you make two changes here:

  1. You don't need the braces around TYPO3_MODE == 'FE'
  2. Please use triple equal signs for comparison ===

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Collaborator

@irnnr irnnr left a comment

Choose a reason for hiding this comment

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

ok, now obviously there's something up with the tests

@stmllr
Copy link

stmllr commented Sep 14, 2016

cHash generation has changed with latest TYPO3 release for new installations and now takes id into calculation. See: https://typo3.org/teams/security/security-bulletins/typo3-core/typo3-core-sa-2016-022/

@irnnr
Copy link
Collaborator

irnnr commented Sep 15, 2016

ah right, thanks @stmllr

@timohund
Copy link
Contributor

I've fixed the broken tests that are related to the cHash change. Tests are running through now and since everything else looks good, i'll merge this PR.

@timohund timohund merged commit 8d5b52f into TYPO3-Solr:master Sep 26, 2016
@megamisan megamisan deleted the ext-solr-647 branch September 26, 2016 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants