PHP code example of dominicwatts / gridgiftmessage
1. Go to this page and download the library: Download dominicwatts/gridgiftmessage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dominicwatts / gridgiftmessage example snippets
sh
diff --git a/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php b/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php index 995bb8335..cff4b8971 100644
--- a/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php
+++ b/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php @@ -52,7 +52,7 @@ class OrderGridCollectionFilter
}
}
- $fieldName = $subject->getConnection()->quoteIdentifier($field);
+ $fieldName = $subject->getConnection()->quoteIdentifier('main_table.' . $field);
$condition = $subject->getConnection()->prepareSqlCondition($fieldName, $condition);
$subject->getSelect()->where($condition, null, Select::TYPE_CONDITION);