summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ContactXref.php3
-rw-r--r--admin/schema_inc.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/ContactXref.php b/ContactXref.php
index d1f109f..e73f2ae 100644
--- a/ContactXref.php
+++ b/ContactXref.php
@@ -80,7 +80,8 @@ class ContactXref extends BitBase {
$pParamHash['xref_store']['source'] = $pParamHash['Array_xref_type_list']['Array.source'];
}
$pParamHash['xref_store']['content_id'] = $pParamHash['content_id'];
- $pParamHash['xref_store']['xorder'] = 0;
+ $sql = "SELECT x`.multi` FROM `".BIT_DB_PREFIX."contact_xref_source` x WHERE x.`source` = ?";
+ $pParamHash['xref_store']['xorder'] = $this->mDb->getOne( $sql, array( $pParamHash['xref_store']['source'] ) );
}
if ( isset ( $pParamHash['fStepXref'] ) ) {
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 017843a..92596b9 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -28,6 +28,7 @@ $tables = array(
source C(20) PRIMARY,
cross_ref_title C(64),
xref_type I2,
+ multi I2,
role_id I4,
cross_ref_href C(256),
data X