Skip to content

Commit 8604a6d

Browse files
authored
Fix admin grid filter, ref OpenMage#1430 (OpenMage#2602)
1 parent bbe1184 commit 8604a6d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/core/Mage/Bundle/Helper/Catalog/Product/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public function getBundleOptions(Mage_Catalog_Model_Product_Configuration_Item_I
8787
$optionsQuoteItemOption = $item->getOptionByCode('bundle_option_ids');
8888
$bundleOptionsIds = $optionsQuoteItemOption ? unserialize($optionsQuoteItemOption->getValue(), ['allowed_classes' => false]) : [];
8989
if ($bundleOptionsIds) {
90-
/** @var Mage_Bundle_Model_Resource_Option_Collection $bundleOptionsIds */
9190
$optionsCollection = $typeInstance->getOptionsByIds($bundleOptionsIds, $product);
9291

9392
// get and add bundle selections collection

app/code/core/Mage/Catalog/Model/Product/Option/Type/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function validateUserValue($values)
6060
/**
6161
* Prepare option value for cart
6262
*
63-
* @return array|int|string|null Prepared option value
63+
* @return int|string|null Prepared option value
6464
*/
6565
public function prepareForCart()
6666
{

app/code/core/Mage/Paypal/Model/Payflowlink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ protected function _checkTransaction($transaction, $amount)
634634
* Check response from Payflow gateway.
635635
*
636636
* @deprecated since 1.6.2.0
637-
* @return null in case of validation passed
637+
* @return null
638638
*/
639639
protected function _getDocumentFromResponse()
640640
{

lib/Varien/Db/Adapter/Pdo/Mysql.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3008,7 +3008,8 @@ public function prepareSqlCondition($fieldName, $condition)
30083008
*/
30093009
protected function _prepareQuotedSqlCondition($text, $value, $fieldName)
30103010
{
3011-
$sql = $this->quoteInto($text, str_replace("\0", '', $value));
3011+
$value = is_string($value) ? str_replace("\0", '', $value) : $value;
3012+
$sql = $this->quoteInto($text, $value);
30123013
return str_replace('{{fieldName}}', $fieldName, $sql);
30133014
}
30143015

0 commit comments

Comments
 (0)