Changeset 5539 for trunk/prototype/api


Ignore:
Timestamp:
02/23/12 17:14:32 (12 years ago)
Author:
airton
Message:

Ticket #2088 - Melhorias no editor de regras de filtro de mensagens do Expresso

Location:
trunk/prototype/api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/api/controller.php

    r5514 r5539  
    422422                foreach( $interceptors[ $eventType ] as $intercept => $interceptor ) 
    423423                { 
    424                     $return = $interceptor->$intercept( $params['URI'], $params['properties'], $params['criteria'], $original/*, $params['service']*/ ); 
     424                    $return = $interceptor->$intercept( $params['URI'], $params['properties'], $params['criteria'], $original /*, $params['service'] */); 
    425425 
    426426                    if( $return === false ) 
     
    560560                    $TX['rollback'] = !!!$params['properties']; 
    561561 
    562                     if( $params['properties'] && isset($params['properties']['id']) ) 
     562                    if( $params['properties'] && is_array($params['properties']) && isset($params['properties']['id']) ) 
    563563                        $TX['id'] = $params['properties']['id']; 
    564564 
     
    639639                $result = Controller::call( $method, $URI, $data, false, false, true ); 
    640640 
    641                 if( !is_bool( $result ) && !is_string( $result ) && isset( $result['id'] ) ) 
     641                if( is_array( $result ) && isset( $result['id'] ) ) 
    642642                      $URI['id'] = $result['id']; 
    643643 
  • trunk/prototype/api/datalayer.js

    r5531 r5539  
    8989    var $this = $(this), action = $this.attr('action'), res = false, 
    9090     
    91     method = $this.attr( 'method' ), 
     91    method = $this.attr( 'method' ) || 'POST', 
    9292     
    9393    fileInputs = $this.find('input[type="file"]'); 
Note: See TracChangeset for help on using the changeset viewer.