Merge pull request #2247 from julceslauhub/master
BUG 13712 Manual assignment doesn't validate when you don't select a user for the next task SOLVED
This commit is contained in:
@@ -842,6 +842,7 @@ try {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '': //when this task is the Finish process
|
case '': //when this task is the Finish process
|
||||||
|
case 'nobody':
|
||||||
$userFields = $oDerivation->getUsersFullNameFromArray( $aFields['TASK'][$sKey]['USER_UID'] );
|
$userFields = $oDerivation->getUsersFullNameFromArray( $aFields['TASK'][$sKey]['USER_UID'] );
|
||||||
$aFields['TASK'][$sKey]['NEXT_TASK']['USR_UID'] = $userFields['USR_FULLNAME'];
|
$aFields['TASK'][$sKey]['NEXT_TASK']['USR_UID'] = $userFields['USR_FULLNAME'];
|
||||||
$aFields['TASK'][$sKey]['NEXT_TASK']['ROU_FINISH_FLAG'] = true;
|
$aFields['TASK'][$sKey]['NEXT_TASK']['ROU_FINISH_FLAG'] = true;
|
||||||
|
|||||||
@@ -274,7 +274,7 @@
|
|||||||
} else {
|
} else {
|
||||||
var selectId = "form[TASKS]["+optionSelect+"][USR_UID]";
|
var selectId = "form[TASKS]["+optionSelect+"][USR_UID]";
|
||||||
|
|
||||||
if (typeof(document.getElementById(selectId)) != 'undefined' && document.getElementById(selectId) != null && userHidden == '') {
|
if (typeof(document.getElementById(selectId)) != 'undefined' && document.getElementById(selectId) != null && (rouType == 'SELECT' || userHidden == '')) {
|
||||||
var vtext = new input(document.getElementById(selectId));
|
var vtext = new input(document.getElementById(selectId));
|
||||||
|
|
||||||
// verify value select the option select
|
// verify value select the option select
|
||||||
|
|||||||
Reference in New Issue
Block a user