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

Added helper for admin button onclick actions #2784

Merged
merged 8 commits into from
Dec 25, 2022
Merged

Added helper for admin button onclick actions #2784

merged 8 commits into from
Dec 25, 2022

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Dec 5, 2022

Description (*)

Added helper methods for admin buttons onclick code for ...

  • confirmSetLocation
  • deleteConfirm
  • saveAndContinueEdit
  • setLocation

... to not add escaping slashes every time ... and fixed some whitespaces ...

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

@github-actions github-actions bot added Component: Adminhtml Relates to Mage_Adminhtml Component: Catalog Relates to Mage_Catalog Component: Checkout Relates to Mage_Checkout Component: Cms Relates to Mage_Cms Component: Core Relates to Mage_Core Component: Directory Relates to Mage_Directory Component: Downloadable Relates to Mage_Downloadable Component: ImportExport Relates to Mage_ImportExport Component: Index Relates to Mage_Index Component: PayPal Relates to Mage_Paypal Component: Rule Relates to Mage_Rule Component: Sales Relates to Mage_Sales labels Dec 5, 2022
@sreichel sreichel changed the title Onclick Adde helper for admin button onclick actions Dec 5, 2022
@sreichel sreichel changed the title Adde helper for admin button onclick actions Added helper for admin button onclick actions Dec 5, 2022
@elidrissidev
Copy link
Member

The new methods return javascript code, so they should be suffixed with Js instead of Html

fballiano
fballiano previously approved these changes Dec 6, 2022
Copy link
Contributor

@fballiano fballiano left a comment

Choose a reason for hiding this comment

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

nice

}

$message = Mage::helper('core')->jsQuoteEscape($message);
return "confirmSetLocation('{$message}', '{$url}')";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not same format as line 103 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've used the format as it was used before.

@sreichel sreichel marked this pull request as draft December 23, 2022 18:18
@sreichel sreichel marked this pull request as ready for review December 24, 2022 21:23
@fballiano fballiano merged commit b6e65db into OpenMage:1.9.4.x Dec 25, 2022
fballiano pushed a commit to fballiano/openmage that referenced this pull request Dec 25, 2022
@sreichel sreichel deleted the onclick branch December 25, 2022 18:38
@luigifab
Copy link
Collaborator

luigifab commented Nov 30, 2023

After creating a refund with HiPay, when we are going on the refund, we have:

image

Probably due to:

image

The error is auto fixed when HiPay send the notification: "Notification from Hipay: status: code-125 Message: Refunded amount: 17.48".

  • 30/11/2023 14:50:40 - Closed - refund created from backend
  • can not open the refund from backend
  • 30/11/2023 14:51:22 - Closed - Notification from Hipay: status: code-125 Message: Refunded amount: 17.48
  • now can open the refund from backend

If I'm not wrong, there is only one usage of getRefundUrl, and setRefundUrl does not exist.
PHP 8.0.30... yes we are has been. OpenMage 20.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Catalog Relates to Mage_Catalog Component: Checkout Relates to Mage_Checkout Component: Cms Relates to Mage_Cms Component: Core Relates to Mage_Core Component: Directory Relates to Mage_Directory Component: Downloadable Relates to Mage_Downloadable Component: ImportExport Relates to Mage_ImportExport Component: Index Relates to Mage_Index Component: PayPal Relates to Mage_Paypal Component: Rule Relates to Mage_Rule Component: Sales Relates to Mage_Sales improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants