Propagate selectFromExisting and offerCreateNew settings from base ob… (#384)
* Propagate selectFromExisting and offerCreateNew settings from base object property to new faux property. * Match tab usage of existing file.
This commit is contained in:
parent
6c9e21544a
commit
dec725a022
1 changed files with 7 additions and 2 deletions
|
@ -183,8 +183,13 @@ public class FauxPropertyRetryController extends BaseEditController {
|
||||||
FauxProperty fp = new FauxProperty(null, baseUri, null);
|
FauxProperty fp = new FauxProperty(null, baseUri, null);
|
||||||
ObjectPropertyDao opDao = wadf.getObjectPropertyDao();
|
ObjectPropertyDao opDao = wadf.getObjectPropertyDao();
|
||||||
DataPropertyDao dpDao = wadf.getDataPropertyDao();
|
DataPropertyDao dpDao = wadf.getDataPropertyDao();
|
||||||
Property base = opDao.getObjectPropertyByURI(baseUri);
|
ObjectProperty objBase = opDao.getObjectPropertyByURI(baseUri);
|
||||||
if (base == null) {
|
Property base;
|
||||||
|
if (objBase != null) {
|
||||||
|
fp.setSelectFromExisting(objBase.getSelectFromExisting());
|
||||||
|
fp.setOfferCreateNewOption(objBase.getOfferCreateNewOption());
|
||||||
|
base = objBase;
|
||||||
|
} else {
|
||||||
base = dpDao.getDataPropertyByURI(baseUri);
|
base = dpDao.getDataPropertyByURI(baseUri);
|
||||||
}
|
}
|
||||||
fp.setGroupURI(base.getGroupURI());
|
fp.setGroupURI(base.getGroupURI());
|
||||||
|
|
Loading…
Add table
Reference in a new issue