Hello,
I'd like to set the UserRequest:Description field to read_only, after when the ticket created. I've found the read_only method (GetAttributeFlags) but it is for the whole lifecycle.
It is possible to solve this problem?
maybe if I update the php method?
public function GetAttributeFlags($sAttCode, &$aReasons = array(), $sTargetState = '')
{
if ($sAttCode == 'description')
{
return(OPT_ATT_READONLY | parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState));
}
return parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
}
but i don't have the parent status in the method:(
thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know those functions, but i'll check , thank you
Do you mean:
<lifecycle>
<stimuli>
<states>
<state id=".....">
<flags>
<attribute id="description">
<read_only>
</read_only></attribute>
?</flags></state></states></stimuli></lifecycle>
Last edit: Peter, U 2 days ago
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'd like to set the UserRequest:Description field to read_only, after when the ticket created. I've found the read_only method (GetAttributeFlags) but it is for the whole lifecycle.
It is possible to solve this problem?
maybe if I update the php method?
public function GetAttributeFlags($sAttCode, &$aReasons = array(), $sTargetState = '')
{
if ($sAttCode == 'description')
{
return(OPT_ATT_READONLY | parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState));
}
return parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
}
but i don't have the parent status in the method:(
thanks in advance
Any reason you don't just use the "lifecycle" states and flags?
I don't know those functions, but i'll check , thank you
Do you mean:
<lifecycle>
<stimuli>
<states>
<state id=".....">
<flags>
<attribute id="description">
<read_only>
</read_only></attribute>
?</flags></state></states></stimuli></lifecycle>
Last edit: Peter, U 2 days ago
Nearly
thank you