Merge branch 'seeddms-5.0.x' into seeddms-5.1.x

This commit is contained in:
Uwe Steinmann 2017-01-18 15:13:18 +01:00
commit c63f994a5f
7 changed files with 16 additions and 6 deletions

View File

@ -96,10 +96,10 @@
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 4.3.32 Changes in version 4.3.32
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
- fix saving new mimetype for fulltext search, available languages - fix saving new mimetype for fulltext search, available languages (Closes #308)
- put access rights of folder into popup box if more than 3 exists - put access rights of folder into popup box if more than 3 exists
- do not execute code which uses apache_request_headers() if it does not exists, - do not execute code which uses apache_request_headers() if it does not exists,
makes webdav work in fast cgi mode or on webservers other than apache makes webdav work in fast cgi mode or on webservers other than apache (Closes #300)
- clean up of distribution created by makefile - clean up of distribution created by makefile
- order groups in select boxes by name - order groups in select boxes by name
- javascript added by addToFooterJS() will be written to a temp. file - javascript added by addToFooterJS() will be written to a temp. file
@ -112,6 +112,7 @@
- replace lots of tables in forms by bootstraps control-group - replace lots of tables in forms by bootstraps control-group
- add remove button to folder selector - add remove button to folder selector
- editing of an exiting review/approval can be turned off - editing of an exiting review/approval can be turned off
- add searching for id of folder/document (Closes #302)
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 4.3.31 Changes in version 4.3.31

View File

@ -1239,7 +1239,7 @@ class SeedDMS_Core_DMS {
// if none is checkd search all // if none is checkd search all
if (count($searchin)==0) if (count($searchin)==0)
$searchin=array(1, 2, 3, 4); $searchin=array(1, 2, 3, 4, 5);
/*--------- Do it all over again for folders -------------*/ /*--------- Do it all over again for folders -------------*/
$totalFolders = 0; $totalFolders = 0;
@ -1401,6 +1401,9 @@ class SeedDMS_Core_DMS {
$searchFields[] = "`tblDocumentAttributes`.`value`"; $searchFields[] = "`tblDocumentAttributes`.`value`";
$searchFields[] = "`tblDocumentContentAttributes`.`value`"; $searchFields[] = "`tblDocumentContentAttributes`.`value`";
} }
if (in_array(5, $searchin)) {
$searchFields[] = "`tblDocuments`.`id`";
}
if (count($searchFields)>0) { if (count($searchFields)>0) {

View File

@ -106,6 +106,9 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
if (in_array(4, $searchin)) { if (in_array(4, $searchin)) {
$searchFields[] = "`tblFolderAttributes`.`value`"; $searchFields[] = "`tblFolderAttributes`.`value`";
} }
if (in_array(5, $searchin)) {
$searchFields[] = "`tblFolders`.`id`";
}
return $searchFields; return $searchFields;
} /* }}} */ } /* }}} */

View File

@ -1147,6 +1147,7 @@ SeedDMS_Core_DMS::getNotificationsByUser() are deprecated
<notes> <notes>
- order groups by name returned by getReadAccessList() - order groups by name returned by getReadAccessList()
- add optional parameter to SeedDMS_Core_DMS::filterDocumentLinks() - add optional parameter to SeedDMS_Core_DMS::filterDocumentLinks()
- SeedDMS_Core_DMS::search() can search for document/folder id
</notes> </notes>
</release> </release>
<release> <release>

View File

@ -203,7 +203,7 @@ if ($action == "saveSettings")
$settings->_converters['fulltext'] = $_POST["converters"]["fulltext"]; $settings->_converters['fulltext'] = $_POST["converters"]["fulltext"];
else else
$settings->_converters['fulltext'] = $_POST["converters"]; $settings->_converters['fulltext'] = $_POST["converters"];
$newmimetype = preg_replace('#[^A-Za-z0-9_/+.]+#', '', $settings->_converters["fulltext"]["newmimetype"]); $newmimetype = preg_replace('#[^A-Za-z0-9_/+.-]+#', '', $settings->_converters["fulltext"]["newmimetype"]);
if($newmimetype && trim($settings->_converters['fulltext']['newcmd'])) if($newmimetype && trim($settings->_converters['fulltext']['newcmd']))
$settings->_converters['fulltext'][$newmimetype] = trim($settings->_converters['fulltext']['newcmd']); $settings->_converters['fulltext'][$newmimetype] = trim($settings->_converters['fulltext']['newcmd']);
unset($settings->_converters['fulltext']['newmimetype']); unset($settings->_converters['fulltext']['newmimetype']);
@ -211,7 +211,7 @@ if ($action == "saveSettings")
if(isset($_POST["converters"]["preview"])) if(isset($_POST["converters"]["preview"]))
$settings->_converters['preview'] = $_POST["converters"]["preview"]; $settings->_converters['preview'] = $_POST["converters"]["preview"];
$newmimetype = preg_replace('#[^A-Za-z0-9_/+.]+#', '', $settings->_converters["preview"]["newmimetype"]); $newmimetype = preg_replace('#[^A-Za-z0-9_/+.-]+#', '', $settings->_converters["preview"]["newmimetype"]);
if($newmimetype && trim($settings->_converters['preview']['newcmd'])) if($newmimetype && trim($settings->_converters['preview']['newcmd']))
$settings->_converters['preview'][$newmimetype] = trim($settings->_converters['preview']['newcmd']); $settings->_converters['preview'][$newmimetype] = trim($settings->_converters['preview']['newcmd']);
unset($settings->_converters['preview']['newmimetype']); unset($settings->_converters['preview']['newmimetype']);

View File

@ -194,6 +194,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
case 2: // name case 2: // name
case 3: // comment case 3: // comment
case 4: // attributes case 4: // attributes
case 5: // id
$searchin[$si] = $si; $searchin[$si] = $si;
break; break;
} }
@ -202,7 +203,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
} }
// if none is checkd search all // if none is checkd search all
if (count($searchin)==0) $searchin=array(1, 2, 3, 4); if (count($searchin)==0) $searchin=array(1, 2, 3, 4, 5);
// Check to see if the search has been restricted to a particular sub-tree in // Check to see if the search has been restricted to a particular sub-tree in
// the folder hierarchy. // the folder hierarchy.

View File

@ -206,6 +206,7 @@ $(document).ready( function() {
<label class="checkbox" for="searchName"><input type="checkbox" name="searchin[]" id="searchName" value="2" <?php if(in_array('2', $searchin)) echo " checked"; ?>><?php printMLText("name");?></label> <label class="checkbox" for="searchName"><input type="checkbox" name="searchin[]" id="searchName" value="2" <?php if(in_array('2', $searchin)) echo " checked"; ?>><?php printMLText("name");?></label>
<label class="checkbox" for="comment"><input type="checkbox" name="searchin[]" id="comment" value="3" <?php if(in_array('3', $searchin)) echo " checked"; ?>><?php printMLText("comment");?></label> <label class="checkbox" for="comment"><input type="checkbox" name="searchin[]" id="comment" value="3" <?php if(in_array('3', $searchin)) echo " checked"; ?>><?php printMLText("comment");?></label>
<label class="checkbox" for="attributes"><input type="checkbox" name="searchin[]" id="attributes" value="4" <?php if(in_array('4', $searchin)) echo " checked"; ?>><?php printMLText("attributes");?></label> <label class="checkbox" for="attributes"><input type="checkbox" name="searchin[]" id="attributes" value="4" <?php if(in_array('4', $searchin)) echo " checked"; ?>><?php printMLText("attributes");?></label>
<label class="checkbox" for="id"><input type="checkbox" name="searchin[]" id="id" value="5" <?php if(in_array('5', $searchin)) echo " checked"; ?>><?php printMLText("id");?></label>
</td> </td>
</tr> </tr>
<tr> <tr>