* added check to avoid infinite recursion
This commit is contained in:
parent
2e23edc9c9
commit
0dc865317d
|
@ -347,6 +347,7 @@ public final class MLookup extends Lookup implements Serializable
|
|||
if (validated)
|
||||
return new ArrayList<Object>(m_lookup.values());
|
||||
|
||||
|
||||
//if (!m_info.IsValidated && onlyValidated)
|
||||
if (!validated && onlyValidated)
|
||||
{
|
||||
|
@ -540,16 +541,18 @@ public final class MLookup extends Lookup implements Serializable
|
|||
*/
|
||||
public int refresh ()
|
||||
{
|
||||
if (m_refreshing) return 0;
|
||||
return refresh(true);
|
||||
} // refresh
|
||||
|
||||
/**
|
||||
* Refresh & return number of items read
|
||||
* @param loadParent get data of parent lookups
|
||||
* @return no of items read
|
||||
* @return no of items refresh
|
||||
*/
|
||||
public int refresh (boolean loadParent)
|
||||
{
|
||||
if (m_refreshing) return 0;
|
||||
if (!loadParent && m_info.IsParent)
|
||||
return 0;
|
||||
// Don't load Search or CreatedBy/UpdatedBy
|
||||
|
|
Loading…
Reference in New Issue