diff --git a/op/op.AddDocument.php b/op/op.AddDocument.php index e269ebb57..cef929ed9 100644 --- a/op/op.AddDocument.php +++ b/op/op.AddDocument.php @@ -429,7 +429,7 @@ foreach($file_ary as $file) { $userfiletype = $tmpfiletype; } - if (!$file["tmp_name"] && ($_POST["name"]!="")) + if ($_POST["name"]!="") $name = trim($_POST["name"]); else $name = utf8_basename($userfilename); diff --git a/op/op.CancelCheckOut.php b/op/op.CancelCheckOut.php index bed1b5013..787a9ea84 100644 --- a/op/op.CancelCheckOut.php +++ b/op/op.CancelCheckOut.php @@ -37,7 +37,8 @@ if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval( $documentid = $_POST["documentid"]; $document = $dms->getDocument($documentid); -if(empty($settings->_enableCancelCheckout)) { +$checkoutstatus = $document->checkOutStatus(); +if($checkoutstatus != 3 && empty($settings->_enableCancelCheckout)) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("operation_disallowed")); } diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index c3f545ff5..8412bbcd6 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -286,7 +286,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo "
\n"; echo "\n"; @@ -466,13 +466,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; if($accessobject->check_view_access('Tasks', array('action'=>'menuTasks'))) { echo " "; - //$this->addFooterJS('checkTasks();'); } } /* }}} End of menu tasks */ @@ -611,7 +605,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; return; } /* }}} */ - protected function showNavigationBar($menuitems, $options = array()) { /* {{{ */ + protected function showNavigationBar($menuitems, $options=array()) { /* {{{ */ $content = ''; $content .= "