diff --git a/application/helpers/remotecontrol/remotecontrol_handle.php b/application/helpers/remotecontrol/remotecontrol_handle.php index 2949c54afbe..5cc3a673d7e 100644 --- a/application/helpers/remotecontrol/remotecontrol_handle.php +++ b/application/helpers/remotecontrol/remotecontrol_handle.php @@ -1108,11 +1108,12 @@ public function set_group_properties($sSessionKey, $iGroupID, $aGroupData) //We do not allow groups with dependencies to change order - that would lead to broken dependencies if((isset($has_dependencies) || isset($depented_on)) && $sFieldName == 'group_order') - $aFailed[$sFieldName]='Group with dependencies - Order cannot be changed'; - else { - $oGroup->setAttribute($sFieldName,$sValue); + $aResult[$sFieldName]='Group with dependencies - Order cannot be changed'; + continue; } + $oGroup->setAttribute($sFieldName,$sValue); + try { // save the change to database - one by one to allow for validation to work @@ -1488,11 +1489,11 @@ public function set_question_properties($sSessionKey, $iQuestionID, $aQuestionDa //We do not allow questions with dependencies in the same group to change order - that would lead to broken dependencies if((isset($dependencies) || isset($is_criteria_question)) && $sFieldName == 'question_order') - $aFailed[$sFieldName]='Questions with dependencies - Order cannot be changed'; - else { - $oQuestion->setAttribute($sFieldName,$sValue); + $aResult[$sFieldName]='Questions with dependencies - Order cannot be changed'; + continue; } + $oQuestion->setAttribute($sFieldName,$sValue); try {