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

Avoid sending empty email when invoking the feedback form. #1149

Merged
merged 1 commit into from Apr 7, 2021

Conversation

osma
Copy link
Member

@osma osma commented Apr 7, 2021

There was a logic error in WebController. The feedback message is always sent even when just displaying the feedback form. This was previously hidden by the honeypot check, but the bug surfaced after the changes to honeypot code in PR #1131.

Fixes #1139

@osma osma added the bug label Apr 7, 2021
@osma osma added this to the 2.10 milestone Apr 7, 2021
@osma osma added this to Needs review in Sprint Backlog I/2021 Apr 7, 2021
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@osma osma requested a review from miguelvaara April 7, 2021 06:53
@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #1149 (8f16c65) into master (62c8611) will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1149      +/-   ##
============================================
+ Coverage     67.96%   67.97%   +0.01%     
  Complexity     1584     1584              
============================================
  Files            32       32              
  Lines          3889     3888       -1     
============================================
  Hits           2643     2643              
+ Misses         1246     1245       -1     
Impacted Files Coverage Δ Complexity Δ
controller/WebController.php 16.93% <0.00%> (+0.05%) 84.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62c8611...8f16c65. Read the comment docs.

@osma osma merged commit 9628630 into master Apr 7, 2021
Sprint Backlog I/2021 automation moved this from Needs review to Issue/PR closed Apr 7, 2021
@osma osma deleted the issue1139-fix-feedback-empty-email branch April 7, 2021 08:08
@miguelvaara
Copy link
Contributor

Relevant code changes 👍

@miguelvaara
Copy link
Contributor

Changes tested and everything works well 👍 🥇

@miguelvaara miguelvaara moved this from Issue/PR closed to Done (verified in dev.finto.fi and documented in wiki and RN) in Sprint Backlog I/2021 Apr 7, 2021
@miguelvaara miguelvaara mentioned this pull request Apr 7, 2021
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Sprint Backlog I/2021
  
Done (verified in dev.finto.fi and do...
Development

Successfully merging this pull request may close these issues.

Using the feedback form an empty email is sent
2 participants