Hi Ana K.
you might give the following a try:
copy the code to a file with extension .spl in your site/mods/majic directory and restart your sdm service.
Be aware that this code is provided as is, and it overrides the standard behavior! Meaning, you own the code and you are responsible for this.
I adopt the mimic of the standard behavior, but omit the inactive check, when the problem attribute gets set from empty to anything.
That means if someone set the problem attribute , he would also be able to change other attributes of the inactive incident as well.
int cr::pre_val_update_cr( ... )
{
string method;
string ticket_type;
string env;
method = "cr::pre_val_update_cr";
send_wait(0, this, "call_attr", "type", "get_val");
if (!(msg_error())) {
if (!(is_null(msg[0]))) {
ticket_type = msg[0];
}
}
else {
logf(ERROR, format("Error getting type - (%s)", msg[0]));
return;
}
if (!(argv[2]) && !(argv[3])) {
env = getenv("NX_EDIT_INACTIVE");
send_wait(0, this, "call_attr", "problem", "get_orig_val");
if(is_null(problem) || !is_null(msg[0])) {
if (!(is_empty(env)) && downcase(env) == "no") {
set_error(1);
if (ticket_type == "P") {
set_return_data(find_msg(5, 281));
}
else if (ticket_type == "I") {
set_return_data(find_msg(5, 282));
}
else {
set_return_data(find_msg(5, 229));
}
}
}
}
}
Let me know, if this solves your question
Regards
............Michael