From 2180f08135d93a1fd07627795bc658b2cb4cebe0 Mon Sep 17 00:00:00 2001 From: Bimal Yashodha Date: Mon, 16 Jun 2014 12:34:25 +0530 Subject: [PATCH] Fix tests Signed-off-by: Bimal Yashodha --- libraries/schema/User_Schema.class.php | 30 +++++++++++--------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index 6ca193b313..380823e15e 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -75,30 +75,24 @@ class PMA_User_Schema $this->chosenPage = 0; } break; -// case 'createpage': -// $this->pageNumber = PMA_REL_createPage( -// $_POST['newpage'], -// $cfgRelation, -// $db -// ); -// $this->autoLayoutForeign = isset($_POST['auto_layout_foreign']) -// ? "1" -// : null; -// $this->autoLayoutInternal = isset($_POST['auto_layout_internal']) -// ? "1" -// : null; -// $this->processRelations( -// $db, -// $this->pageNumber, -// $cfgRelation -// ); -// break; case 'createpage': $this->pageNumber = PMA_REL_createPage( $_POST['newpage'], $cfgRelation, $db ); + $this->autoLayoutForeign = isset($_POST['auto_layout_foreign']) + ? "1" + : null; + $this->autoLayoutInternal = isset($_POST['auto_layout_internal']) + ? "1" + : null; +// $this->processRelations( +// $db, +// $this->pageNumber, +// $cfgRelation +// ); +// break; $this->saveTablePositions( $db, $this->pageNumber,