mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
ee13f8d084
|
@ -38,6 +38,8 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.3
|
||||
--------------------------------------------------------------------------------
|
||||
- add link to search for attribute value in attribute mgr
|
||||
- fix output of validation errors in attribute mgr
|
||||
- check if user has access on document and is not disabled if set as
|
||||
reviewer, approver
|
||||
- merged changes from 5.0.13
|
||||
|
|
|
@ -329,7 +329,7 @@ function getOverallStatusText($status) { /* {{{ */
|
|||
}
|
||||
} /* }}} */
|
||||
|
||||
function getAttributeValidationText($error, $attrname='', $attrvalue='') { /* {{{ */
|
||||
function getAttributeValidationText($error, $attrname='', $attrvalue='', $regex='') { /* {{{ */
|
||||
switch($error) {
|
||||
case 10:
|
||||
return getMLText("attr_not_in_valueset", array('attrname'=>$attrname, 'value'=>$attrvalue));
|
||||
|
@ -353,7 +353,7 @@ function getAttributeValidationText($error, $attrname='', $attrvalue='') { /* {{
|
|||
return getMLText("attr_malformed_url", array('attrname'=>$attrname, 'value'=>$attrvalue));
|
||||
break;
|
||||
case 3:
|
||||
return getMLText("attr_no_regex_match", array('attrname'=>$attrname, 'value'=>$attrvalue));
|
||||
return getMLText("attr_no_regex_match", array('attrname'=>$attrname, 'value'=>$attrvalue, 'regex'=>$regex));
|
||||
break;
|
||||
case 2:
|
||||
return getMLText("attr_max_values", array('attrname'=>$attrname, 'value'=>$attrvalue));
|
||||
|
|
|
@ -82,12 +82,13 @@ $(document).ready( function() {
|
|||
foreach($res['frequencies'][$type] as $entry) {
|
||||
$value = $selattrdef->parseValue($entry['value']);
|
||||
$content .= "<tr>";
|
||||
$content .= "<td>".implode(';', $value)."</td><td>".$entry['c']."</td>";
|
||||
$content .= "<td>".implode(';', $value)."</td>";
|
||||
$content .= "<td><a href=\"../out/out.Search.php?resultmode=".($type == 'folder' ? 2 : ($type == 'document' ? 1 : 3))."&attributes[".$selattrdef->getID()."]=".$entry['value']."\">".urlencode($entry['c'])."</a></td>";
|
||||
$content .= "<td>";
|
||||
/* various checks, if the value is valid */
|
||||
if(!$selattrdef->validate($entry['value'])) {
|
||||
$content .= getAttributeValidationText($selattrdef->getValidationError(), $selattrdef->getName(), $entry['value']);
|
||||
$content .= getAttributeValidationText($selattrdef->getValidationError(), $selattrdef->getName(), $entry['value'], $selattrdef->getRegex());
|
||||
}
|
||||
$content .= "<td>";
|
||||
/* Check if value is in value set */
|
||||
if($selattrdef->getValueSet()) {
|
||||
foreach($value as $v) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user