lib/QuickBaseClient.rb in quickbase_client-1.0.13 vs lib/QuickBaseClient.rb in quickbase_client-1.0.14
- old
+ new
@@ -1016,11 +1016,11 @@
end
# Returns whether a given string represents a valid QuickBase field type.
def isValidFieldType?( type )
@validFieldTypes ||= %w{ checkbox dblink date duration email file fkey float formula currency
- lookup phone percent rating recordid text timeofday timestamp url userid icalendarbutton }
+ lookup multiuserid phone percent rating recordid text timeofday timestamp url userid icalendarbutton }
@validFieldTypes.include?( type )
end
# Returns a field type string given the more human-friendly label for a field type.
def fieldTypeForLabel( fieldTypeLabel )
@@ -3217,12 +3217,12 @@
# Delete all records in the active table that match
# the field/operator/value. e.g. deleteRecords( "Status", "==", "inactive" ).
# To delete ALL records, call deleteRecords() with no parameters. This is the
# same as calling _purgeRecords.
def deleteRecords( fieldNameToTest = nil, test = nil, fieldValueToTest = nil)
+ numRecsDeleted = 0
if @dbid and @fields and fieldNameToTest and test and fieldValueToTest
- numRecsDeleted = 0
numRecs = _getNumRecords
if numRecs > "0"
fieldNameToTestID = lookupFieldIDByName( fieldNameToTest )