Changeset 17881

Show
Ignore:
Timestamp:
10/02/08 16:27:14 (2 months ago)
Author:
flack
Message:

no need to load DM for theses handlers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.invoices/handler/edit.php

    r17865 r17881  
    191191        $_MIDCOM->auth->require_valid_user(); 
    192192 
    193         $this->_request_data['invoice'] = $this->_load_invoice($args[0]); 
    194         if (!$this->_request_data['invoice']
     193        $this->_request_data['invoice'] = new org_openpsa_invoices_invoice($args[0]); 
     194        if ($this->_request_data['invoice']->guid == ""
    195195        { 
    196196            return false; 
     
    253253        $_MIDCOM->auth->require_valid_user(); 
    254254 
    255         $this->_request_data['invoice'] = $this->_load_invoice($args[0]); 
    256         if (!$this->_request_data['invoice']
     255        $this->_request_data['invoice'] = new org_openpsa_invoices_invoice($args[0]); 
     256        if ($this->_request_data['invoice']->guid == ""
    257257        { 
    258258            return false;