mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
b89b2a9254
|
@ -629,6 +629,19 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
||||||
return $this->_folder;
|
return $this->_folder;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set folder of a document
|
||||||
|
*
|
||||||
|
* This function basically moves a document from a folder to another
|
||||||
|
* folder.
|
||||||
|
*
|
||||||
|
* @param SeedDMS_Core_Folder $newFolder
|
||||||
|
* @return boolean false in case of an error, otherwise true
|
||||||
|
*/
|
||||||
|
function setParent($newFolder) { /* {{{ */
|
||||||
|
return $this->setFolder($newFolder);
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set folder of a document
|
* Set folder of a document
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
- ???
|
- add method SeedDMS_Core_Document::setParent() as an alias for setFolder()
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
|
@ -353,9 +353,9 @@ function add_log_line($msg="", $priority=null) { /* {{{ */
|
||||||
else
|
else
|
||||||
$scriptname = basename($_SERVER["SCRIPT_NAME"], ".php");
|
$scriptname = basename($_SERVER["SCRIPT_NAME"], ".php");
|
||||||
if($user)
|
if($user)
|
||||||
$logger->log($user->getLogin()." (".$ip.") ".$scriptname.($msg ? ' '.$msg : ''), $priority);
|
$logger->log($user->getLogin()." (".$ip.") ".$scriptname.($msg ? $msg : ''), $priority);
|
||||||
else
|
else
|
||||||
$logger->log("-- (".$ip.") ".$scriptname.($msg ? ' '.$msg : ''), $priority);
|
$logger->log("-- (".$ip.") ".$scriptname.($msg ? $msg : ''), $priority);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function _add_log_line($msg="") { /* {{{ */
|
function _add_log_line($msg="") { /* {{{ */
|
||||||
|
|
|
@ -2704,6 +2704,8 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
// $content .= "<td>".$version."</td>";
|
// $content .= "<td>".$version."</td>";
|
||||||
$content .= "<td>";
|
$content .= "<td>";
|
||||||
$content .= "<div class=\"list-action\">";
|
$content .= "<div class=\"list-action\">";
|
||||||
|
if(!empty($extracontent['begin_action_list']))
|
||||||
|
$content .= $extracontent['begin_action_list'];
|
||||||
if($document->getAccessMode($user) >= M_ALL) {
|
if($document->getAccessMode($user) >= M_ALL) {
|
||||||
$content .= $this->printDeleteDocumentButton($document, 'splash_rm_document', true);
|
$content .= $this->printDeleteDocumentButton($document, 'splash_rm_document', true);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2720,6 +2722,8 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$content .= '<a class="addtoclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="icon-copy"></i></a>';
|
$content .= '<a class="addtoclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="icon-copy"></i></a>';
|
||||||
}
|
}
|
||||||
|
if(!empty($extracontent['end_action_list']))
|
||||||
|
$content .= $extracontent['end_action_list'];
|
||||||
$content .= "</div>";
|
$content .= "</div>";
|
||||||
$content .= "</td>";
|
$content .= "</td>";
|
||||||
if(!$skipcont)
|
if(!$skipcont)
|
||||||
|
@ -2829,6 +2833,8 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
// $content .= "<td></td>";
|
// $content .= "<td></td>";
|
||||||
$content .= "<td>";
|
$content .= "<td>";
|
||||||
$content .= "<div class=\"list-action\">";
|
$content .= "<div class=\"list-action\">";
|
||||||
|
if(!empty($extracontent['begin_action_list']))
|
||||||
|
$content .= $extracontent['begin_action_list'];
|
||||||
$subFolderAccessMode = $subFolder->getAccessMode($user);
|
$subFolderAccessMode = $subFolder->getAccessMode($user);
|
||||||
if($subFolderAccessMode >= M_ALL) {
|
if($subFolderAccessMode >= M_ALL) {
|
||||||
$content .= $this->printDeleteFolderButton($subFolder, 'splash_rm_folder', true);
|
$content .= $this->printDeleteFolderButton($subFolder, 'splash_rm_folder', true);
|
||||||
|
@ -2843,6 +2849,8 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$content .= '<a class="addtoclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="icon-copy"></i></a>';
|
$content .= '<a class="addtoclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="icon-copy"></i></a>';
|
||||||
}
|
}
|
||||||
|
if(!empty($extracontent['end_action_list']))
|
||||||
|
$content .= $extracontent['end_action_list'];
|
||||||
$content .= "</div>";
|
$content .= "</div>";
|
||||||
$content .= "</td>";
|
$content .= "</td>";
|
||||||
if(!$skipcont)
|
if(!$skipcont)
|
||||||
|
|
|
@ -61,7 +61,7 @@ class SeedDMS_View_FolderChooser extends SeedDMS_Bootstrap_Style {
|
||||||
// $this->htmlStartPage(getMLText("choose_target_folder"));
|
// $this->htmlStartPage(getMLText("choose_target_folder"));
|
||||||
// $this->contentContainerStart();
|
// $this->contentContainerStart();
|
||||||
if(1) {
|
if(1) {
|
||||||
$this->printNewTreeNavigationHtml($rootfolderid, $mode, 0, $form, ($this->params['expandFolderTree'] == 1) ? -1 : 3, $orderby);
|
$this->printNewTreeNavigationHtml($rootfolderid, $mode, 0, $form, 0, $orderby);
|
||||||
echo '<script src="../out/out.FolderChooser.php?action=js&'.$_SERVER['QUERY_STRING'].'"></script>'."\n";
|
echo '<script src="../out/out.FolderChooser.php?action=js&'.$_SERVER['QUERY_STRING'].'"></script>'."\n";
|
||||||
} else {
|
} else {
|
||||||
$this->printNewTreeNavigation($rootfolderid, $mode, 0, $form);
|
$this->printNewTreeNavigation($rootfolderid, $mode, 0, $form);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user