|Anonymous | Login | Signup for a new account||2021-01-18 16:32 GMT|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001766||SiT!||plugin hooks||public||2012-01-25 12:26||2012-11-17 18:21|
|Product Version||3.63 LTS|
|Target Version||Fixed in Version||3.66 LTS|
|Summary||0001766: Add plugin_do() hook into "suggest_reassign_userid()" for alternative assignment plugin|
|Description||As discussed before please can we add a plugin hook into the function suggest_reassign_userid() in incident.inc.php to enable us to create an alternative incident assignment plugin as discussed on IRC and in mantis.|
I suggest to add it just before the return statement, but we have to keep in mind that the variable $userid is not a global in that function, and we may have to set it globally so that the plugin may access it.
I suggest 'incident_suggest_user_assign' as a context name
|Tags||No tags attached.|
|Attached Files|| Image 106.png [^] (5,716 bytes) 2012-01-26 14:34
After some consideration I decided to change the function as is shown in the screenshot.
The reason being that $userid is not a global (we are calling a plugin from within a function), thus we can't replace that variable with the plugin's result.
So I tried first to verify the result from the plugin, and if it exists, then we use it as a replacement.
What do you guys think?
I've added the context incident_created_suggest_user into the current SVN branch as part of my work on queues, does this do what your after?
As a note about the screenshot, it should be plugin_do and not $plugin_do as its a function not a variable
|plugin hook was added in 3.66 so closing this one|
|2012-01-25 12:26||nicdev||New Issue|
|2012-01-25 12:29||ivan||Relationship added||child of 0001212|
|2012-01-25 12:29||ivan||Status||new => confirmed|
|2012-01-26 14:34||nicdev||File Added: Image 106.png|
|2012-01-26 14:37||nicdev||Note Added: 0004437|
|2012-01-27 08:44||paulh||Note Added: 0004438|
|2012-11-17 18:21||paulh||Note Added: 0004589|
|2012-11-17 18:21||paulh||Status||confirmed => closed|
|2012-11-17 18:21||paulh||Resolution||open => fixed|
|2012-11-17 18:21||paulh||Fixed in Version||=> 3.66 LTS|
|Copyright © 2000 - 2021 MantisBT Team|