mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
not sure what i was doing here, now checking record value correctly
This commit is contained in:
@ -27,7 +27,6 @@ import com.kingsrook.qqq.backend.core.actions.interfaces.QActionInterface;
|
||||
import com.kingsrook.qqq.backend.core.model.data.QRecord;
|
||||
import com.kingsrook.qqq.backend.core.model.metadata.tables.QTableMetaData;
|
||||
import com.kingsrook.qqq.backend.core.utils.StringUtils;
|
||||
import com.kingsrook.qqq.backend.core.utils.ValueUtils;
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
@ -50,7 +49,7 @@ public abstract class AbstractMemoryAction implements QActionInterface
|
||||
// always set value if boolean to overwrite is true, otherwise, //
|
||||
// only set the value if there is currently no content for the field //
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
if(overwriteIfSet || !StringUtils.hasContent(ValueUtils.getValueAsString(table.getField(fieldName))))
|
||||
if(overwriteIfSet || !StringUtils.hasContent(record.getValueString(fieldName)))
|
||||
{
|
||||
record.setValue(fieldName, value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user