diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-12-08 10:40:14 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-12-08 10:40:14 +0000 |
| commit | 10b4f0effa6daad4108dee1dec32b403cea1e46d (patch) | |
| tree | ee1a77676b63527f47b08dedb4b7a3f820787cd4 /edit_xref.php | |
| parent | f87fa0e8af6da30a49d800faae8d8f8df1ddacf0 (diff) | |
| download | contact-10b4f0effa6daad4108dee1dec32b403cea1e46d.tar.gz contact-10b4f0effa6daad4108dee1dec32b403cea1e46d.tar.bz2 contact-10b4f0effa6daad4108dee1dec32b403cea1e46d.zip | |
Ensure related content item is loaded when accessing a sub-record
Diffstat (limited to 'edit_xref.php')
| -rw-r--r-- | edit_xref.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/edit_xref.php b/edit_xref.php index 2815875..a752439 100644 --- a/edit_xref.php +++ b/edit_xref.php @@ -19,6 +19,9 @@ $gBitSystem->verifyPackage( 'contact' ); $gBitSystem->verifyPermission( 'p_contact_update' ); include_once( CONTACT_PKG_PATH.'lookup_contact_inc.php' ); +if( empty( $gContent ) || !is_object( $gContent ) ) { + $gContent = new Contact(); +} if( !empty( $_REQUEST['xref_id'] ) ) { $gContent->loadXref( $_REQUEST['xref_id'] ); @@ -41,10 +44,10 @@ if (isset($_REQUEST["fCancel"])) { } } else if(isset( $_REQUEST["expunge"] ) ) { if( $gContent->stepXref( $_REQUEST ) ) { - if ( $_REQUEST['expunge'] > 2) { +// if ( $_REQUEST['expunge'] > 2) { header("Location: ".$gContent->getDisplayUrl() ); die; - } +// } } } |
