Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.8
Component:
Order
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2013 at 13:36 UTC
Updated:
31 Dec 2013 at 17:49 UTC
Jump to comment: Most recent
Just a heads up that the following functions try to delete from undefined tables unless I'm missing something.
Is this legacy or placeholder code?
In commerce_order.module:
<?php
/**
* Resets an order status by name to its module defined defaults.
*/
function commerce_order_status_reset($name) {
db_delete('commerce_order_status')
->condition('name', $name)
->execute();
}
/**
* Resets an order state by name to its module defined defaults.
*/
function commerce_order_state_reset($name) {
db_delete('commerce_order_state')
->condition('name', $name)
->execute();
}
?>
Comments
Comment #1
rszrama commentedThese were unused leftovers from a time before 1.0 when we actually had those tables. I removed the functions.