Skip to content

Commit b84a7e7

Browse files
committed
lib: support field option in url
1 parent ec0f103 commit b84a7e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

quickbase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ final public function constructPayload(){
180180
$this->payload = $xmlDoc->asXML();
181181
}else{
182182
foreach($this->options as $key => $value){
183-
$this->payload .= '&'.$key.'='.urlencode($value);
183+
if($key === 'field'){
184+
$this->payload .= '&_fid_'.$value['fid'].'='.urlencode($value['value']);
185+
}else{
186+
$this->payload .= '&'.$key.'='.urlencode($value);
187+
}
184188
}
185189
}
186190

0 commit comments

Comments
 (0)