We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following SQL is OK:
SELECT `increment_id` AS 'Order_ID' FROM `sales_order_grid``
However this one will throw SQL syntax error:
SELECT `increment_id` AS 'Order ID' FROM `sales_order_grid``
After I drill on var/log/system.log, I found the the resultant SQL is the cause of this error.
var/log/system.log
SELECT `t`.* FROM (SELECT `increment_id` AS 'Order ID' FROM `sales_order_grid`) AS `t` ORDER BY Order ID DESC LIMIT 20
The text was updated successfully, but these errors were encountered:
Yeah, that's an issue on the extension. You can edit the file: Block/Adminhtml/Report/Grid.php in the function addColumnSet($dataItem)
In that file you can modify the line 57: $data = [ 'data' => ['header' => $key, 'index' => $key, 'type' => 'text'] ];
for:
$data = [ 'data' => ['header' => str_replace("_"," ",$key), 'index' => $key, 'type' => 'text'] ];
In that way, you can set the query with the "_" but the backend grid column title will show the right space between the words.
Let me know if you have any questions.
Best,
Sorry, something went wrong.
No branches or pull requests
The following SQL is OK:
However this one will throw SQL syntax error:
After I drill on
var/log/system.log
, I found the the resultant SQL is the cause of this error.The text was updated successfully, but these errors were encountered: