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

Better config for admin RSS links #4243

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Better config for admin RSS links #4243

merged 2 commits into from
Oct 14, 2024

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Oct 2, 2024

@github-actions github-actions bot added documentation Component: Adminhtml Relates to Mage_Adminhtml Component: Rss Relates to Mage_Rss translations Relates to app/locale labels Oct 2, 2024
@sreichel sreichel merged commit a64848b into OpenMage:main Oct 14, 2024
18 checks passed
@sreichel sreichel deleted the ref-2760 branch October 14, 2024 03:11
fballiano added a commit to MahoCommerce/maho that referenced this pull request Oct 14, 2024
) {
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
if (Mage::helper('sales')->isModuleOutputEnabled('Mage_Rss')) {
$filterString = $this->getParam($this->getVarNameFilter());
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be null and it triggers a null parameter warning in prepareFilterString

Copy link
Contributor

Choose a reason for hiding this comment

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

@sreichel Can you fix:

    [type] => 8192:E_DEPRECATED
    [message] => base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated
    [file] => app\code\core\Mage\Adminhtml\Helper\Data.php
    [line] => 108

Copy link
Contributor Author

@sreichel sreichel Oct 16, 2024

Choose a reason for hiding this comment

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

Thanks. PR comming. How to reproduce?

Copy link
Contributor

Choose a reason for hiding this comment

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

go to the sales->order backend page...

$filter = Mage::helper('adminhtml')->prepareFilterString($filterString);
$storeId = array_key_exists('store_id', $filter) ? $filter['store_id'] : null;

if (Mage::helper('rss')->isRssAdminOrderNewEnabled($storeId)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if ($storeId && Mage::helper('rss')->isRssAdminOrderNewEnabled($storeId)) {

Copy link
Contributor Author

@sreichel sreichel Oct 16, 2024

Choose a reason for hiding this comment

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

$storeId is used one line later and default view (when i remember right?)

            if (Mage::helper('rss')->isRssAdminOrderNewEnabled($storeId)) {
                $slug = $storeId ? '/store/' . $storeId : '';
                $this->addRssList('rss/order/new' . $slug, Mage::helper('sales')->__('New Order RSS'));
            }

sreichel added a commit to sreichel/magento-lts that referenced this pull request Oct 16, 2024
sreichel added a commit that referenced this pull request Oct 18, 2024
* PHP8: base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated

- #4243 (comment)

* refactor

* refactor

* refactor

* refactor [skip ci]

* Update app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

Co-authored-by: Ng Kiat Siong <[email protected]>

---------

Co-authored-by: Ng Kiat Siong <[email protected]>
github-actions bot pushed a commit to mdsxbm/maho that referenced this pull request Oct 19, 2024
* PHP8: base64_decode(): Passing null to parameter MahoCommerce#1 ($string) of type string is deprecated

- OpenMage/magento-lts#4243 (comment)

* refactor

* refactor

* refactor

* refactor [skip ci]

* Update app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

Co-authored-by: Ng Kiat Siong <[email protected]>

---------

Co-authored-by: Ng Kiat Siong <[email protected]>
github-actions bot pushed a commit to justinbeaty/maho that referenced this pull request Oct 19, 2024
* PHP8: base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated

- OpenMage/magento-lts#4243 (comment)

* refactor

* refactor

* refactor

* refactor [skip ci]

* Update app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

Co-authored-by: Ng Kiat Siong <[email protected]>

---------

Co-authored-by: Ng Kiat Siong <[email protected]>
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: Rss Relates to Mage_Rss documentation translations Relates to app/locale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants