Fix error in setting product resource type. (#897)

Signed-off-by: kriegfrj <fr.jkrieg@greekwelfaresa.org.au>
This commit is contained in:
Fr Jeremy Krieg 2021-09-23 22:41:03 +09:30 committed by GitHub
parent d51333aa57
commit 445ca8e0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport
public boolean setResource (MResourceType parent)
{
boolean changed = false;
if (PRODUCTTYPE_Resource.equals(getProductType()))
if (!PRODUCTTYPE_Resource.equals(getProductType()))
{
setProductType(PRODUCTTYPE_Resource);
changed = true;