Thank you for that info.
Am I able to call that function in my plugin and override it to remove adding the "_"? Or would I have to override the function outside of the plugin (affects whole website)?
Search found 8 matches
- 15 Nov 2022, 19:31
- Forum: General Plugin Discussion
- Topic: Manage Columns Name
- Replies: 3
- Views: 12136
- 09 Nov 2022, 20:32
- Forum: General Plugin Discussion
- Topic: Manage Columns Name
- Replies: 3
- Views: 12136
Manage Columns Name
Hello, I recently created a plugin to create a column called "date_closed". Code is here: https://github.com/priyam759/MantisBT-Plugin-ClosedDate/tree/main When going into manage columns, I want the field name there to look like "date_closed" just like "date_submitted" ...
- 19 Oct 2022, 16:58
- Forum: General Discussion
- Topic: Days Lapse from Case Open to Case Closed
- Replies: 10
- Views: 11001
Re: Days Lapse from Case Open to Case Closed
Hi Atrol,
I was looking at the time_tracking field from the mantis_bugnote_table in the database that is used in the plugin mentioned above, and I see all the values as '0'.. do you know why this is?
I was looking at the time_tracking field from the mantis_bugnote_table in the database that is used in the plugin mentioned above, and I see all the values as '0'.. do you know why this is?
- 27 Sep 2022, 19:06
- Forum: Help
- Topic: Custom Field of Date and setting it to populate sysdate?
- Replies: 8
- Views: 4602
Re: Custom Field of Date and setting it to populate sysdate?
In config/custom_functions_inc.php:
function custom_function_override_string_DateClosed($p_bug_id) {
$t_id = custom_field_get_id_from_name('DateClosed');
$date = date('Y-m-d H:i:s');
custom_field_set_value($t_id, $p_bug_id, 'Test', $p_log_insert = false);
}
Am I getting closer?
function custom_function_override_string_DateClosed($p_bug_id) {
$t_id = custom_field_get_id_from_name('DateClosed');
$date = date('Y-m-d H:i:s');
custom_field_set_value($t_id, $p_bug_id, 'Test', $p_log_insert = false);
}
Am I getting closer?
- 23 Sep 2022, 12:58
- Forum: Help
- Topic: Custom Field of Date and setting it to populate sysdate?
- Replies: 8
- Views: 4602
Re: Custom Field of Date and setting it to populate sysdate?
Is the function not written correctly or does it have to be called differently in Manage Custom Fields?
- 22 Sep 2022, 21:39
- Forum: Customizations
- Topic: Autofill of a custom field with calculated value
- Replies: 5
- Views: 17096
Re: Autofill of a custom field with calculated value
This plugin may be of interest to you: https://github.com/mantisbt-plugins/LinkedCustomFields
- 23 May 2022, 17:21
- Forum: Help
- Topic: Custom Field of Date and setting it to populate sysdate?
- Replies: 8
- Views: 4602
Re: Custom Field of Date and setting it to populate sysdate?
I have added a function in my core\custom_function_api.php file like below: function custom_function_default_string_closed() { $date = date('Y-m-d H:i:s'); return $date; } In accordance with the other custom functions, I believe adding "=closed" in the possible values field of the custom f...
- 16 May 2022, 15:59
- Forum: Help
- Topic: Custom Field of Date and setting it to populate sysdate?
- Replies: 8
- Views: 4602
Re: Custom Field of Date and setting it to populate sysdate?
Replying to this post because this is also something I am looking to implement.. any ideas anyone?