objectManager: Display reply text when editing another user's entry
This commit is contained in:
committed by
Chris Morgan
parent
3e2029a354
commit
5875da01a7
@@ -287,7 +287,7 @@ class ObjectManager
|
||||
|
||||
/* if this is a queue add a dialog for replying to the submitter of the
|
||||
queued entry */
|
||||
if($this->bIsQueue)
|
||||
if($this->bIsQueue || ($oObject->objectGetSubmitterId() && $oObject->objectGetSubmitterId() != $_SESSION['current']->iUserId))
|
||||
{
|
||||
/* If it isn't implemented, that means there is no default text */
|
||||
if(method_exists(new $this->sClass, "getDefaultReply"))
|
||||
@@ -299,7 +299,8 @@ class ObjectManager
|
||||
echo '<td><textarea name="sReplyText" style="width: 100%" cols="80" '.
|
||||
'rows="10">'.$sDefaultReply.'</textarea></td></tr>',"\n";
|
||||
|
||||
|
||||
if($this->bIsQueue)
|
||||
{
|
||||
/////////////////////////////////////////////////
|
||||
// output radio buttons for some common responses
|
||||
echo '<tr valign=top><td class="color0"></td><td class="color0">'.
|
||||
@@ -320,6 +321,7 @@ class ObjectManager
|
||||
}
|
||||
// end output radio buttons for common responses
|
||||
/////////////////////////////////////////////////
|
||||
}
|
||||
|
||||
|
||||
/* buttons for operations we can perform on this entry */
|
||||
|
||||
Reference in New Issue
Block a user