View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010236 | mantisbt | customization | public | 2009-03-20 07:41 | 2016-04-24 06:19 |
Reporter | Assigned To | vboctor | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0a3 | ||||
Summary | 0010236: Due_date field is not shown in All Column Fields? | ||||
Description | Due_date field cannot be seen in any of the view_issue, bug_update. It is there in bug_advanced_update page, however if i update that field it is not updating; Instead the default due_date in the bug table. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Thi is correct, I already have adjusted scripts for that which i will make availabel later today. |
|
Thanks for your early reply. |
|
Attached zip contain3 files which belong in the core directory. |
|
This post looks wrongly placed. I just posted those scripts needed to embed the due date column in a number of places. |
|
Attached my files to enable seeing/adjusting due date on the simple reports. |
|
I have an issue with this, i have made the patch work done by you, regarding due_date, in my view_issue, bug_update and bug_update page. However if i update the due_date(ie. im setting up the due date), but it is not seen in view_issues_page.php. In view_issues page the due_date column is still empty, it is not showing the updated due_date. |
|
Also how to set the 'due_date' or any other column field to be mandatory, while creating bugs or updating bugs |
|
I suppose you mean in this page, view_all_bug_page.php? |
|
Yes cas. I have done with what you said; however if i create a new bug, and set any date for 'due_date' field, it is not updated. And again when we view the created bug, the 'due_date' field is empty. Please to make sure, can you please create a new bug, and set an 'due_date' for it and look it in view.php page for the particular bug that you have created recently. I think the queries for 'bug_create' and 'bug_update' has to be updated. |
|
The due_date has a default value of "1970-01-01 00:00:01" so will always be filled. No need to change anything else. |
|
Dear Cas, I did the same, but the due_date does not gets set. What I did is, reported a new bug, in which i have filled 'due_date' field and other required fields, and submit the report and when it redirects to view bug page, i do not see the due_date field filled. Instead it is being empty. Can you please refer to it. |
|
In case if we need to set the due_date to future date, it wont be an issue, am i right? Because i gave some future date in due_date field. |
|
Is your installation accessible from the outside? |
|
No cas it can't be accessible. |
|
Sorry, |
|
Cas Could you please zip/attach of mantis 1.2.0a3 which you have done and so that i can check with the changes you have made. The php files under 'mantis1.2.0a3/core/' and 'mantis1.2.0a3/'. |
|
Attached, renamed config_inc.php |
|
Dear Cas Even in the code which you have send me, has the same issue which i am facing. In report issues page, i am having due_date field, with the 'current_date' but once we click the 'SUBMIT' button to create issues. Then in the view_issues page of the particular bug that we have created does not have the due_date to be set; Instead it is seen empty. Let me attach you the screen shot of it. 'report_issue_scren_shot.gif' and 'view_issues_screen_shot.gif' |
|
You could see the screen shot, i am selecting tomorrow's date as 'due_date' in report_issues page, but which is not been seen in view_issues page. |
|
Check your database, updating fails hence showing null. |
|
yes cas; i have checked my database, it is not updating. In my database; due_date field is DATETIME and NOT NULL with default value '1970-01-01 00:00:00' But then there is some issue in update query, am i right? Also for me while creating bug also i face the same issue; Can you please send me your 'bug_api.php' where we have function for bug_create and bug_update. Or could you please let me the know the exact place to change/tune the query to update or create bug with due_date field. |
|
Cas Sorry cas, it is my mistake; due_date accepts only '2009-03-24 00:00:00' this format, but i was trying to '03-24-09' this format. So it throws an error as incorrect date function. The function which you are using 'mktime(0,0,0, date("d"), date("m"), date("y"));' with this how to attain the format for '2009-03-24 00:00:00' with DATETIMe format. |
|
You can define your date settings in config_inc.php (see config_inc_defaults.php) |
|
Yes cas, thanx a lot and one more issue i am facing; In FC10(linux) machine, if i select today's date say '2009-03-25', using the 'date picker' and while viewing in the text box, it shows as '2009-03-24' it is reducing one day. But it is working fine in windows machine. What ever date i am selecting one day it is reducing. |
|
Also, i have checked the same code that is in linux machine, working fine in windows machine. Does the date format depends on apache or php. |
|
I have to make the due_date field as a mandatory field in report_issue page, update_issue page, how to perform it... Regards, |
|
among the attachments you have given me, I see a file named 'custom_function_inc.php'. What for it is used. Because i did not use it anywhere. Please let me know where the file should be placed, and how it is handled.... |
|
While reporting a new bug, If i am not selecting any date for due_date field, it should highlight with the default date, but it is not getting the default date in view_issues page, instead i could see the default date in the view_all_issues page. |
|
As for the additional file see http://www.mantisbt.org/bugs/view.php?id=10237 As for the date, I have difficulty giving an answer since it will vary upon your config of the date settings. |
|
my date configuration is as short_date='Y-m-d' Can you please brief me why the date selected is reduced to one day, when testing in LINUX(FC10) machine. |
|
As for the reduction of 1 day, I guess this was by design. If it needs to be done by March 26, it should be finished on March 25th. As for the customfield, if you want it to be mandatory, make sure you also select it to be required on the correct douments. |
|
However, i do not see this pre-filling of 1 day in windows machine. I have my mantis 1.2.0a3 application both in LINUX and windows machine, which has the same code, but in linux as you said it was by design, '1' day is reduced. But it should also function the same way in Windows. But it is not.. Do you have any idea or have you faced this..... |
|
Sorry, works the same for me. |
|
could you please help me out in issue 0010255, how to add 'updated by' username who updates a particular bug, in view_all_bug_page.php. |
|
@cas & All Thanks cas. If you find any solution for this 'due_date' field with different functionalities in LINUX and WINDOWS, Please let me know. And regarding http://www.mantisbt.org/bugs/view.php?id=10255, I have added a new column in 'mantis_bug_table' and wrote a TRIGGER FUNCTION in 'mantis_bug_history_table'. And added 'updated_by' field in 'mantis/core/columns_api.php' file. But this is not a perfect solution i am sure.. If you find any solution please let me know.. Thanks a lot for your help. |
|
As per this instance, due_date is available as a column for View Issues, Print Issues, CSV Export and Excel Export. Am I missing something here? |
|
This is no longer an issue and should have been closed. |
|