Project

General

Profile

Bug #57568 ยป patch-ActionTask.txt

STI UdeS, 2015-04-10 22:22

 
--- ActionTask.php.orig 2015-04-10 11:50:25.328768320 -0400
+++ ActionTask.php 2015-04-10 16:00:39.979736375 -0400
@@ -259,6 +259,13 @@
// Load BE user to edit
if ((int)GeneralUtility::_GP('be_users_uid') > 0) {
$tmpUserId = (int)GeneralUtility::_GP('be_users_uid');
+ } elseif( $key != 'NEW' ) {
+ // This takes the $key value returned by saveNewBackendUser() function.
+ $tmpUserId = $key;
+ } else {
+ $tmpUserId = null;
+ }
+ if( isset( $tmpUserId ) ){
// Check if the selected user is created by the current user
$rawRecord = $this->isCreatedByUser($tmpUserId, $record);
if ($rawRecord) {
@@ -273,7 +280,7 @@
$this->JScode();
$loadDB = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
$loadDB->start($vars['db_mountpoints'], 'pages');
- $content .= '<form action="" method="post" enctype="multipart/form-data">
+ $content .= '<form name="editform" action="" method="post" enctype="multipart/form-data">
<fieldset class="fields">
<legend>' . $GLOBALS['LANG']->getLL('action_t1_legend_generalFields') . '</legend>
<div class="row">
@@ -568,8 +575,7 @@
protected function JScode() {
$this->t3lib_TCEforms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
$this->t3lib_TCEforms->backPath = $GLOBALS['BACK_PATH'];
- $js = $this->t3lib_TCEforms->dbFileCon();
- $this->taskObject->doc->JScodeArray[] = $js;
+ $js = $this->t3lib_TCEforms->printNeededJSFunctions();
return $js;
}

    (1-1/1)