From 0d4b1a516fd60c7d02203cbbc93ca29cd520b557 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Mon, 10 Sep 2007 19:25:29 +0000 Subject: make sure we use a unique id name and don't load mochi - will interfere with ajax uploads --- edit_pigeonholes.php | 12 ++++++------ templates/edit_pigeonholes.tpl | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/edit_pigeonholes.php b/edit_pigeonholes.php index 8d0755e..9d5bf56 100644 --- a/edit_pigeonholes.php +++ b/edit_pigeonholes.php @@ -1,6 +1,6 @@ mStructureId ) ? $rootStructure->mStructureId : NULL; // store the pigeonhole - $pigeonStore = new Pigeonholes(); - $pigeonStore->mContentId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL; + $pigeonStore = new Pigeonholes( NULL, !empty( $_REQUEST['pigeonhole_content_id'] ) ? $_REQUEST['pigeonhole_content_id'] : NULL ); $pigeonStore->load(); if( $pigeonStore->store( $_REQUEST['pigeonhole'] )) { header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$pigeonStore->mStructureId.( !empty( $_REQUEST['action'] ) ? '&action='.$_REQUEST['action'] : '' )."&success=".urlencode( tra( "The category was successfully stored" ) ) ); @@ -87,8 +87,8 @@ if( !empty( $_REQUEST['action'] ) || isset( $_REQUEST["confirm"] ) ) { $gBitSystem->confirmDialog( $formHash, $msgHash ); } - if( $_REQUEST['action'] == 'dismember' && !empty( $_REQUEST['content_id'] ) && !empty( $_REQUEST['parent_id'] ) ) { - if( $gContent->expungePigeonholeMember( array( 'parent_id' => $_REQUEST['content_id'], 'member_id' => $_REQUEST['parent_id'] ) ) ) { + if( $_REQUEST['action'] == 'dismember' && !empty( $_REQUEST['pigeonhole_content_id'] ) && !empty( $_REQUEST['parent_id'] ) ) { + if( $gContent->expungePigeonholeMember( array( 'parent_id' => $_REQUEST['pigeonhole_content_id'], 'member_id' => $_REQUEST['parent_id'] ) ) ) { $feedback['success'] = tra( 'The item was successfully removed' ); } else { $feedback['error'] = tra( 'The item could not be removed' ); diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index ded6c5c..f315307 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -13,7 +13,7 @@ {legend legend="Create / Edit Category"} {if $gContent->mStructureId} - +
-- cgit v1.3