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

Fix #5390 - Redundant message when duplicating a survey #10058

Merged

Conversation

serhiisamko091184
Copy link
Contributor

@serhiisamko091184 serhiisamko091184 commented May 15, 2023

Fixes issue #5390

Description

#5390

Motivation and Context

We check through global request weather data comes from duplication button or not. It helps to show message where it's necessary and avoid where it is not.

How To Test This

All the detail are given in the issue description.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

@jack7anderson7 jack7anderson7 added Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member Status: Requires Code Review Needs the core team to code review labels May 15, 2023
@jack7anderson7 jack7anderson7 added the Area:Surveys Issues & PRs related to all things regarding Surveys label Aug 31, 2023
@@ -27,7 +27,7 @@ function ($a, $b) {
);
$smarty->assign('questions', $questions);
$smarty->assign('message', '');
if ($view == 'EditView') {
if ($view == 'EditView' && $_REQUEST['isDuplicate'] === false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @serhiisamko091184, we need to check if $_REQUEST['isDuplicate'] is set, otherwise we can get warnings/notices. Something like:

$isDuplicate = $_REQUEST['isDuplicate'] ?? false;
if ($view == 'EditView' && $isDuplicate === false) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for feedback @clemente-raposo ,
I did requested changes.
Thanks a lot!

Regards,
Serhii

@clemente-raposo clemente-raposo added the Status:Requires Updates Issues & PRs which requires input or update from the author label Sep 8, 2023
@serhiisamko091184 serhiisamko091184 removed the Status:Requires Updates Issues & PRs which requires input or update from the author label Sep 8, 2023
@clemente-raposo clemente-raposo added Status: Requires Testing Requires Manual Testing Status: Passed Code Review Mark issue has passed code review reviewed and removed Status: Requires Code Review Needs the core team to code review labels Sep 11, 2023
@johnM2401 johnM2401 added Status: Passed Testing and removed Status: Requires Testing Requires Manual Testing labels Sep 12, 2023
@jack7anderson7 jack7anderson7 merged commit eeea0ec into salesagility:hotfix-7.13.x Sep 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Surveys Issues & PRs related to all things regarding Surveys Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member Status: Passed Code Review Mark issue has passed code review reviewed Status: Passed Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants