return $r;
}
+ public function getSimpleAccountList(
+ $where = '',
+ $order = '',
+ $fieldVals = true,
+ $idField = 'id',
+ $start = false,
+ $limit = false
+ ) {
+ // Save the current fields array and make a copy
+ $fSave = $this->fields;
+
+ // Remove what we don't want from the copy and get the list
+ $this->fields = array(
+ 'id' => $fSave['id'],
+ 'name' => $fSave['ref_name'],
+ );
+
+ $memberList = $this->getList($where, $order, $fieldVals, $idField, $start, $limit);
+
+ // Restore the fields list
+ $this->fields = $fSave;
+
+ return $memberList;
+ }
+
}
$view = 'invoices';
// Need to get the accounts
$Accounts = new GlmDataAccounts( $this->wpdb, $this->config );
- $accounts = $Accounts->getList();
+ $accounts = $Accounts->getSimpleAccountList();
$where_params = array( 'true' );