summaryrefslogtreecommitdiff
path: root/edit_key_break.php
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2011-01-13 10:48:38 +0000
committerLester Caine <lsces@lsces.co.uk>2011-01-13 10:48:38 +0000
commita53ed0c794e0d687c111c9ceaab635f9f5b6584f (patch)
tree950d657f3b83e53b0f33a2eec9a15a1e9ac92546 /edit_key_break.php
parentc0603e3dbd38502b824e10772e2dd9e0e0ee9531 (diff)
downloadcontact-a53ed0c794e0d687c111c9ceaab635f9f5b6584f.tar.gz
contact-a53ed0c794e0d687c111c9ceaab635f9f5b6584f.tar.bz2
contact-a53ed0c794e0d687c111c9ceaab635f9f5b6584f.zip
Break seal processing tidy up. This should be part of callout process, but in case of accidental break a manual re-seal is still required.
Diffstat (limited to 'edit_key_break.php')
-rw-r--r--edit_key_break.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/edit_key_break.php b/edit_key_break.php
index 9adfbd4..49c10fa 100644
--- a/edit_key_break.php
+++ b/edit_key_break.php
@@ -26,13 +26,26 @@ if( empty( $gContent ) || !is_object( $gContent ) ) {
if( !empty( $_REQUEST['xref_id'] ) ) {
$gContent->loadXref( $_REQUEST['xref_id'] );
}
-
$gContent->stepXref( $_REQUEST );
+if(isset($_REQUEST["fSaveXref"])) {
+ header("Location: ".$gContent->getDisplayUrl() );
+ die;
+}
+
// formInfo might be set due to a error on submit
if( empty( $xrefInfo ) ) {
$xrefInfo = &$gContent->mInfo['xref_store']['data'];
}
+if( empty( $xrefInfo['content_id'] ) ) {
+ $xrefInfo = $_REQUEST;
+ if ( isset($xrefInfo['edit']) ) {
+ $xrefInfo['data'] = $xrefInfo['edit'];
+ }
+}
+
+// Ensure simple text edit boxes for xref entries
+$gContent->mInfo['format_guid'] = 'text';
$gBitSmarty->assign_by_ref( 'xrefInfo', $xrefInfo );
$gBitSmarty->assign_by_ref( 'title', $gContent->mInfo['title'] );
$gBitSmarty->assign_by_ref( 'xref_title', $gContent->mInfo['xref_title'] );