Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
benanhalt committed Mar 28, 2019
2 parents e545364 + acc8b59 commit a6a2f55
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/mammal/mammal.views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<cell type="label" labelfor="3"/>
<cell type="field" id="3" name="accession" uitype="querycbx" initialize="name=AccessionCO;title=AccessionCO" isrequired="false"/>
<cell type="label" labelfor="14"/>
<cell type="field" id="14" name="altCatalogNumber" uitype="formattedtext"/>
<cell type="field" id="14" name="altCatalogNumber" uitype="text"/>
</row>
<row>
<cell type="label" labelfor="4"/>
Expand Down
2 changes: 1 addition & 1 deletion config/mammal/manager/mammal.views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<cell type="label" labelfor="3"/>
<cell type="field" id="3" name="accession" uitype="querycbx" initialize="name=AccessionCO;title=AccessionCO" isrequired="false"/>
<cell type="label" labelfor="14"/>
<cell type="field" id="14" name="altCatalogNumber" uitype="formattedtext"/>
<cell type="field" id="14" name="altCatalogNumber" uitype="text"/>
</row>
<row>
<cell type="label" labelfor="4"/>
Expand Down
2 changes: 1 addition & 1 deletion src/edu/ku/brc/af/ui/forms/ViewFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ protected boolean createItem(final DBTableInfo parentTableInfo,
if (perm != null)
{
//PermissionSettings.dumpPermissions("QCBX: "+tblInfo.getShortClassName(), perm.getOptions());
if (perm.isViewOnly() || !perm.canView())
if (!perm.canView())
{
uiType = FormCellField.FieldType.textfieldinfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ public final void setParentTables(Vector<Vector<Uploader.ParentTableEntry>> pare
{
pte.getImportTable().addChild(this);
}
else if (needToMatchChildren() && pte.getImportTable().isOneToOneChild())
else if (needToMatchChildren(true) && pte.getImportTable().isOneToOneChild())
{
addChild(pte.getImportTable());
}
Expand Down Expand Up @@ -2645,7 +2645,7 @@ else if (child.getTblClass().equals(CollectingEventAuthorization.class))
}
}
}
if (tblClass.equals(CollectingTrip.class)) {
else if (tblClass.equals(CollectingTrip.class)) {
for (UploadTable child : specialChildren) {
logDebug(child.getTable().getName());
if (child.getTblClass().equals(CollectingTripAttribute.class))
Expand Down Expand Up @@ -3069,20 +3069,24 @@ else if (tblClass.equals(Locality.class)) {
return result;
}

protected boolean needToMatchChildren() {
return needToMatchChildren(false);
}
/**
*
* @return
*/
protected boolean needToMatchChildren()
protected boolean needToMatchChildren(boolean buildingUploader)
{
if (updateMatches) {
if (!buildingUploader && uploader.isUpdateUpload()) {
return !matchUsingExportedRecord();
}

// temporary fix. Really should determine based on cascade rules and the fields in the
// dataset.
return !skipChildrenMatching.get() &&
(tblClass.equals(CollectingEvent.class)
return (buildingUploader || !skipChildrenMatching.get()) &&
(tblClass.equals(CollectingEvent.class)
|| tblClass.equals(CollectingTrip.class)
|| tblClass.equals(Accession.class)
|| tblClass.equals(Agent.class)
|| tblClass.equals(CollectionObject.class)
Expand Down

0 comments on commit a6a2f55

Please sign in to comment.