-
Notifications
You must be signed in to change notification settings - Fork 3
N°6863 - Allow mail inbox administrator to choose log attribute in which updates will be added #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,11 @@ | |
| <default_value/> | ||
| <is_null_allowed>true</is_null_allowed> | ||
| </field> | ||
| <field id="ticket_updates_log_attcode" xsi:type="AttributeString"> | ||
| <sql>ticket_updates_log_attcode</sql> | ||
| <default_value>public_log</default_value> | ||
| <is_null_allowed>false</is_null_allowed> | ||
| </field> | ||
| <field id="title_pattern" xsi:type="AttributeString"> | ||
| <sql>title_pattern</sql> | ||
| <default_value/> | ||
|
|
@@ -833,7 +838,7 @@ EOF | |
| } | ||
|
|
||
| // Determine which field to update | ||
| $sAttCode = 'public_log'; | ||
| $sAttCode = $this->Get('ticket_updates_log_attcode'); | ||
| $aAttCodes = MetaModel::GetModuleSetting('itop-standard-email-synchro', 'ticket_log', array('UserRequest' => 'public_log', 'Incident' => 'public_log')); | ||
| if (array_key_exists(get_class($oTicket), $aAttCodes)) | ||
| { | ||
|
Comment on lines
840
to
844
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Should this setting be obsoleted and ignored maybe?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right, I'll fix it!
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just changed the conf. param. default value to an empty array; but actually the whole conf. param. should be obsoleted you are right.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about existing/upgrading users? They will still have the setting from previous install. Also new users will have this setting as it is still present in module file.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's why obsoleting the param. and removing the line from the code is the best way IMHO. For existing users, we should check the existing conf. param. and apply the corresponding value to existing mail inboxes. I missed that!
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That could be an action during setup (after database creation) for example..
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Totally |
||
|
|
@@ -1476,6 +1481,9 @@ EOF | |
| <item id="ticket_default_title"> | ||
| <rank>60</rank> | ||
| </item> | ||
| <item id="ticket_updates_log_attcode"> | ||
| <rank>65</rank> | ||
| </item> | ||
| <item id="title_pattern"> | ||
| <rank>70</rank> | ||
| </item> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.