summaryrefslogtreecommitdiff
path: root/ContactXref.php
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2010-12-08 08:52:05 +0000
committerLester Caine <lsces@lsces.co.uk>2010-12-08 08:52:05 +0000
commit3ed47300ef7580e05a5bc088f989037323ff956b (patch)
tree1497755b880751eae583f23850ccac5a23294378 /ContactXref.php
parent844a6ca29be806beb5ad22a2c06770c858273089 (diff)
downloadcontact-3ed47300ef7580e05a5bc088f989037323ff956b.tar.gz
contact-3ed47300ef7580e05a5bc088f989037323ff956b.tar.bz2
contact-3ed47300ef7580e05a5bc088f989037323ff956b.zip
Add switch for single/multiple xref source selection
When xorder = 0 only one record of that type is allowed, '1' can then have additional records numbered up from that.
Diffstat (limited to 'ContactXref.php')
-rw-r--r--ContactXref.php3
1 files changed, 2 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'] ) ) {