Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, April 18, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Bug found, but Report Bug is crashing

phpMyEdit General     Bug found, but Report Bug is crashing
Post new topic   Reply to topic    
 
iplayfast     Joined: 08 Oct 2003   Posts: 4  
Post Posted: 2008-05-01 07:30
Back to top  Reply with quote     

I tried to report a bug and fix but wasn't able to, so I'm reporting it here in the hopes that a developer notices.

From the cvs line 2223 of phpMyEdit.php

Code:
             if ($this->first_operation()) {
                        $this->fm = 0;
                } // last operation must be performed below, after retrieving total_recs
                if ($this->next_operation()) {
                        $this->fm += $this->inc;
                }
                $this->number_of_recs();
                if ($this->last_operation() || $this->fm > $this->total_recs) { // if goto_text is badly set
                        $this->fm = (int)(($this->total_recs - 1)/$this->inc)*$this->inc;
                }


at this point $this->fm is the last page, no matter what you wanted.

the following code needs to be added to set to the first page as needed.

Code:
               if ($this->first_operation()) {
                        $this->fm = 0;
                }


 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy