THT Community
A couple minor bug fixes. - Printable Version

+- THT Community (https://thehostingtool.com/forum)
+-- Forum: THT Resource Center (https://thehostingtool.com/forum/forum-13.html)
+--- Forum: Plugin Center (https://thehostingtool.com/forum/forum-15.html)
+--- Thread: A couple minor bug fixes. (/thread-1699.html)



A couple minor bug fixes. - ReworkedScripts - 02-18-2012

Hey, I just wanted to post a few changes to help get rid of the PHP warning messages that pop up in the tickets section of the admin area.

In /admin/pages/tickets.php

FIND:
PHP Code:
public function content($status) { # Displays the page 

REPLACE IT WITH:
PHP Code:
public function content($status "") { # Displays the page 

In /admin/pages/ticketsall.php

FIND:
PHP Code:
public function content($status) { # Displays the page 

REPLACE IT WITH:
PHP Code:
public function content($status "") { # Displays the page 


These changes make it so that the default status is set to an empty string. When you view all the tickets, you see them all. When you select a ticket that has the status of Other, Open, On Hold, or Closed, the status will be passed though the above functions as the type of ticket to show.


RE: A couple minor bug fixes. - Kevin - 02-22-2012

This was fixed in r199. Wink


RE: A couple minor bug fixes. - ReworkedScripts - 02-22-2012

How come the version on the home page never was updated with a new package for that then? I'm fixing all the bugs and I'll post a fixed copy of 1.2.3 in the forums so others don't have to spend days fixing it like I did. The current download was from 12/2010. If there's a new version, please tell me and also, please update the home page with the newest one and the Google Code page. I'll download it from the SVN and see how many bugs were fixed and then go from there. This way I won't be reinventing the wheel and wind up posting things that will be harder to synch up later on.


RE: A couple minor bug fixes. - Kevin - 02-22-2012

There has been no official release since then. The version in Google Code is simply a development snapshot and should be treated as such.


RE: A couple minor bug fixes. - ReworkedScripts - 02-22-2012

True, but when the snapshots are more stable than the stable release it seems strange to not post one of them as a new release.


RE: A couple minor bug fixes. - Kevin - 02-22-2012

(02-22-2012, 08:03 AM)LightworkerNaven Wrote: True, but when the snapshots are more stable than the stable release it seems strange to not post one of them as a new release.

The snapshots are not more stable than the release. The installer / upgrader in subversion is even shakier than the one in 1.2.3