File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,17 @@ function onShow()
4949 //* call the onShow function of the parent class
5050 parent ::onShow ();
5151 }
52+
53+ function onAfterInsert ()
54+ {
55+ global $ app , $ conf ;
56+
57+ if ($ _SESSION ['s ' ]['user ' ]['typ ' ] == 'admin ' ) {
58+ $ app ->db ->query ("UPDATE support_message SET sys_userid = " .$ this ->dataRecord ['recipient_id ' ]." WHERE support_message_id = " .$ this ->id );
59+ }
60+
61+ }
62+
5263}
5364
5465//* Create the new page object
Original file line number Diff line number Diff line change 1212$ app ->uses ('listform_actions ' );
1313
1414//* Optional limit
15- // $app->listform_actions->SQLExtWhere = "type = 'alias'" ;
15+ $ app ->listform_actions ->SQLExtWhere = "recipient_id = " . $ _SESSION [ ' s ' ][ ' user ' ][ ' userid ' ] ;
1616
1717//* Start the form rendering and action ahndling
1818$ app ->listform_actions ->onLoad ();
You can’t perform that action at this time.
0 commit comments