mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
fix setValueIfTableHasField - should catch if field isn't found (helps tables w/o createDate work)
This commit is contained in:
@ -168,10 +168,19 @@ public abstract class AbstractRDBMSAction implements QActionInterface
|
||||
*******************************************************************************/
|
||||
protected void setValueIfTableHasField(QRecord record, QTableMetaData table, String fieldName, Serializable value)
|
||||
{
|
||||
QFieldMetaData field = table.getField(fieldName);
|
||||
if(field != null)
|
||||
try
|
||||
{
|
||||
record.setValue(fieldName, value);
|
||||
QFieldMetaData field = table.getField(fieldName);
|
||||
if(field != null)
|
||||
{
|
||||
record.setValue(fieldName, value);
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
/////////////////////////////////////////////////
|
||||
// this means field doesn't exist, so, ignore. //
|
||||
/////////////////////////////////////////////////
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user