View Issue Details

IDProjectCategoryView StatusLast Update
0015255mantisbtbugtrackerpublic2014-09-23 18:05
Reporteranshu Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformwindowsOSwindowsOS Versionwindows2008
Product Version1.2.13 
Target Version1.2.13Fixed in Version1.2.13 
Summary0015255: Date filter fields are disabled when $g_use_javascript = OFF
Description

When ticking 'use date filters' checkbox in view issues page, the associated selection fields to pick the date criteria remain disabled, preventing date filtering.

They should be enabled by default.

User's original report text below

1) when i am checked on use date filters it should enable but its enabling after click on apply filter it should enable on checked.
2)minimization option of search,or fill in not working when i am clicking near search minimize image option on view issue page, page is redirecting to another page ,same is occurring in on click of or fill in minimize option in report issue page .

Additional Information
  • Mantis 1.2.12 (upgraded from bitnami 1.1.8)
  • Apache 2.4.3
  • MySQL 5.5.28
  • PHP 5.4.8
  • phpMyAdmin 3.5.3
    windows2008

no change in customization
not installed any plugins or custom functions.
not modified source code only upgrade the database.
all information has given, please help me to solve the issues.

TagsNo tags attached.
Attached Files
usedatefilter2.JPG (146,087 bytes)   
usedatefilter2.JPG (146,087 bytes)   

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

dregad

dregad

2012-12-04 06:53

developer   ~0034458

anshu,

I realize that English is not your mothertongue, but I'm having a hard time understanding what your problem is.

Please try to be more accurate, or maybe upload screenshots demonstrating what the problem is / what you expect to happen.

As a side note, it may be useful not to "drown" your problem in too much background information - I'm not sure the whole section describing your upgrade process is relevant or useful in this context, and makes it hard trying to figure out what you need - is it an upgrade problem or something else ?

anshu

anshu

2012-12-04 07:26

reporter   ~0034459

1)my problem is when i do check the checked box of use date filter ,it should enable but not happening like this , how to solve this error?
2)another issue is minimization option of search,or fill in not working when i am clicking near search minimize image option on view issue page, page is redirecting to another page ,same is occurring in on click of or fill in minimize option in report issue page .
please help me how to solve this errors?

dregad

dregad

2012-12-04 08:14

developer   ~0034461

I'm still not sure I understand you correctly, but it sounds like you have an issue with javascript

anshu

anshu

2012-12-04 08:25

reporter   ~0034465

I have attached one screen shot hope now u will get my problem please help me to solve me this.

dregad

dregad

2012-12-04 09:30

developer   ~0034468

Last edited: 2012-12-04 09:57

I can confirm and reproduce the issue you are facing here, by disabling javascript.

As a workaround, please enable javascript ($g_use_javascript = ON in your config_inc.php) and also make sure it's enabled in your browser.

I'll work on a fix to make these fields enabled when $g_use_javascript = OFF

dregad

dregad

2012-12-04 10:26

developer   ~0034469

This was already partially fixed in master branch (for date filters) but the issue still existed for custom fields of type date

anshu

anshu

2012-12-05 01:57

reporter   ~0034472

I have copied your given code in core/filter_api and $g_use_javascript = OFF; in config file but when i am running the mantis url i am getting 500 internal server error "website can't display the page".

dregad

dregad

2012-12-05 08:36

developer   ~0034477

500 server error is too generic, and does not help me at all in understanding what is happening, especially considering that I do not have access to a W08/IIS setup for testing. Please provide additional information, log file, which page is being opened when you get the error, etc.

By the way is there a particular reason why you need to disable javascript ? If not, then you should reconsider, as the system is much more user-friendly with scripting enabled.

anshu

anshu

2012-12-05 12:23

reporter   ~0034480

if i am doing on java script on then its also not working,i am doing copy of code which you have provided delete filter_api original code and paste your given code in that file,is it right way? after this process when i am running mantis url i am getting 500 server error.

dregad

dregad

2012-12-05 12:42

developer   ~0034482

Assuming you have replaced the whole filter_api.php file, yes it should be OK (unless there have been other changes to that file since release 1.2.12 but I don't think so). To be on the safe side, you can also try with a nightly build.

This bug tracker is not the right channel to discuss and get support on your specific system configuration. As mentioned previously, please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

I will now resolve this ticket again, please don't reopen it unless you can find an issue with the patch itself.

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036111

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master-1.2.x e30887f9

2012-12-04 09:58

dregad


Details Diff
Enable filter date fields by default when $g_use_javascript = OFF

With javascript disabled, when ticking 'use date filters' checkbox in
view issues page, the associated selection fields to pick the date
criteria remain disabled, preventing date filtering.

The code now detects the state of $g_use_javascript and sets the
'disabled' state of the date selection fields accordingly.

Also removes 'Undefined variables' system notices.

Fixes 0015255
Affected Issues
0015255
mod - core/filter_api.php Diff File

MantisBT: master efbfd052

2012-12-04 09:58

dregad


Details Diff
Enable filter date fields by default when $g_use_javascript = OFF

With javascript disabled, when ticking 'use date filters' checkbox in
view issues page, the associated selection fields to pick the date
criteria remain disabled, preventing date filtering.

The code now detects the state of $g_use_javascript and sets the
'disabled' state of the date selection fields accordingly.

Also removes 'Undefined variables' system notices.

Fixes 0015255
Affected Issues
0015255
mod - core/filter_api.php Diff File