Skip to content

Commit

Permalink
src: more supportting code for QuickBase Support Case #480141...
Browse files Browse the repository at this point in the history
  • Loading branch information
tflanagan committed Nov 1, 2016
1 parent 6fc8dfa commit 06cd99c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions quickbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,16 @@ final public static function API_Authenticate(&$query, &$results){

final public static function API_DoQuery(&$query, &$results){
if(isset($query->options['fmt']) && $query->options['fmt'] === 'structured'){
// QuickBase Support Case #480141
if(isset($results['table']['queries'])){
for($i = 0, $i < count($results['table']['queries']); $i < $l; ++$i){
if(isset($results['table']['queries'][$i]['qydesc']) && is_array($results['table']['queries'][$i]['qydesc'])){
$results['table']['queries'][$i]['qydesc'] = $results['table']['queries'][$i]['qydesc']['_'];
}
}
}
// End Quickbase Support Case #480141

if(isset($results['table']['records'])){
if(!is_array($results['table']['records']) && $results['table']['records'] === ''){
$results['table']['records'] = array();
Expand Down Expand Up @@ -832,6 +842,16 @@ final public static function API_DoQuery(&$query, &$results){
// final public static function API_GetNumRecords(&$query, &$results){ }

final public static function API_GetSchema(&$query, &$results){
// QuickBase Support Case #480141
if(isset($results['table']['queries'])){
for($i = 0, $i < count($results['table']['queries']); $i < $l; ++$i){
if(isset($results['table']['queries'][$i]['qydesc']) && is_array($results['table']['queries'][$i]['qydesc'])){
$results['table']['queries'][$i]['qydesc'] = $results['table']['queries'][$i]['qydesc']['_'];
}
}
}
// End Quickbase Support Case #480141

if(isset($results['table']['chdbids'])){
if(isset($results['table']['chdbids']['_'])){
$results['table']['chdbids'] = array( $results['table']['chdbids'] );
Expand Down

0 comments on commit 06cd99c

Please sign in to comment.