Index: orders/orders_item.php =================================================================== --- orders/orders_item.php (revision 13001) +++ orders/orders_item.php (working copy) @@ -23,33 +23,6 @@ $this->ErrorMsgs['credit_card_expired'] = $this->Application->Phrase('lu_cc_expired'); } - function Load($id, $id_field_name=null) - { - if( $this->Special == 'sitem' && $id == null || (!$this->IsTempTable() && $id == 0)) - { - $this->setID(0); - - $this->SetDBField('Number',-1); - $this->SetDBField('SubNumber',-1); - // load previously used search params from session - $search_params = $this->Application->RecallVar('ord.search_search_filter'); - if($search_params) - { - $search_params = unserialize($search_params); - foreach($search_params as $search_field => $search_params) - { - $this->SetField($search_field, $search_params['search_value']); - } - $this->UpdateFormattersSubFields(); // used for updating separate virtual date/time fields from DB timestamp (for example) - } - return true; - } - else - { - return parent::Load($id,$id_field_name); - } - } - /** * Return error message for field *