Changeset 5539 for trunk/prototype/api
- Timestamp:
- 02/23/12 17:14:32 (12 years ago)
- Location:
- trunk/prototype/api
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/api/controller.php
r5514 r5539 422 422 foreach( $interceptors[ $eventType ] as $intercept => $interceptor ) 423 423 { 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'] */); 425 425 426 426 if( $return === false ) … … 560 560 $TX['rollback'] = !!!$params['properties']; 561 561 562 if( $params['properties'] && is set($params['properties']['id']) )562 if( $params['properties'] && is_array($params['properties']) && isset($params['properties']['id']) ) 563 563 $TX['id'] = $params['properties']['id']; 564 564 … … 639 639 $result = Controller::call( $method, $URI, $data, false, false, true ); 640 640 641 if( !is_bool( $result ) && !is_string( $result ) && isset( $result['id'] ) )641 if( is_array( $result ) && isset( $result['id'] ) ) 642 642 $URI['id'] = $result['id']; 643 643 -
trunk/prototype/api/datalayer.js
r5531 r5539 89 89 var $this = $(this), action = $this.attr('action'), res = false, 90 90 91 method = $this.attr( 'method' ) ,91 method = $this.attr( 'method' ) || 'POST', 92 92 93 93 fileInputs = $this.find('input[type="file"]');
Note: See TracChangeset
for help on using the changeset viewer.